Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 10, 2020
1 parent d73c8ad commit 5ee1d66
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- run: docker system prune --all --force

- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: camptocamp/initialise-gopass-summon-action@v2
with:
Expand Down Expand Up @@ -147,8 +149,8 @@ jobs:
- run: ci/test-upgrade cleanup ${HOME}/workspace

- name: Init Git
run: |
git remote set-url origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
run: git remote set-url origin
https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- run: make build-tools
- run: make build-runner
- run: make build-config
Expand Down
4 changes: 4 additions & 0 deletions ci/project-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
checks:
required_workflows: False
versions: False
4 changes: 3 additions & 1 deletion ci/test-app
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ rm -rf ${HOME}/workspace/testgeomapfishapp
ci/create-new-project ${HOME}/workspace
cp ci/docker-compose.override.yaml ${HOME}/workspace/testgeomapfishapp/
cp ci/empty.qgz ${HOME}/workspace/testgeomapfishapp/qgisserver/project.qgz
PROJECT_DIR=$(pwd)
docker build --tag=camptocamp/geomapfish-test-app-db docker/test-app-db
docker build --tag=camptocamp/geomapfish-test-external-db docker/test-external-db

cd ${HOME}/workspace/testgeomapfishapp/
rm ci/config.yaml
c2cciutils-checks
cp ${PROJECT_DIR}/ci/project-config.yaml ci/config.yaml
c2cciutils-checks
./build
docker-compose down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
max_line_length = 110
quote_type = single

[*.js]
indent_size = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import distutils.core

from pyramid.config import Configurator
from {{package}}_geoportal.resources import Root

from c2cgeoportal_geoportal import INTERFACE_TYPE_NGEO, add_interface, locale_negotiator
from c2cgeoportal_geoportal.lib.authentication import create_authentication
from c2cgeoportal_geoportal.lib.i18n import LOCALE_PATH
from {{package}}_geoportal.resources import Root


def main(global_config, **settings):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ from pyramid.i18n import TranslationStringFactory

from c2cgeoportal_commons.models.main import * # noqa


_ = TranslationStringFactory("{{package}}_geoportal-server")
LOG = logging.getLogger(__name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length = 110
target-version = ['py38']
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[isort]
known_first_party=c2cgeoportal_commons,c2cgeoportal_geoportal,c2cgeoportal_admin,{{package}}_geoportal
multi_line_output=3
include_trailing_comma=1
force_grid_wrap=0
use_parentheses=1
line_length=110
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[tool.black]
line-length = 110
target-version = ['py38']
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ disallow_untyped_defs = True

[isort]
known_third_party=c2cwsgiutils,c2cgeoform
known_first_party=c2cgeoportal_commons,c2cgeoportal_geoportal,c2cgeoportal_admin
known_first_party=c2cgeoportal_commons,c2cgeoportal_geoportal,c2cgeoportal_admin,{{package}}_geoportal
multi_line_output=3
include_trailing_comma=1
force_grid_wrap=0
Expand Down

0 comments on commit 5ee1d66

Please sign in to comment.