Skip to content
Snippets Groups Projects
Commit 947f97f7 authored by Andreas Nüßlein's avatar Andreas Nüßlein
Browse files

gitlab-ci/cd

parent 8be352df
No related branches found
No related tags found
No related merge requests found
......@@ -28,16 +28,21 @@ django formatting and linting:
# - poetry run pylint config -d unused-wildcard-import,unused-import,wildcard-import
# - poetry run pylint apps --exit-zero # pylint is quite broken at the moment
#django tests and coverage:
# stage: test
# interruptible: true
# services:
# - name: postgis/postgis:12-3.2
# alias: postgres
# script:
# - poetry install
# - poetry run doit migrate
# - poetry run pytest -x
django tests and coverage:
stage: test
interruptible: true
services:
- name: harbor.containers.wurnet.nl/proxy-cache/postgis/postgis:14-3.2
alias: postgres
script:
- apt update
- apt-get -qq install -y python3-dev python3-pip python3-venv gdal-bin imagemagick libmagic1
- apt-get -qq install -y fonts-freefont-ttf fonts-ipafont-gothic fonts-kacst fonts-thai-tlwg fonts-wqy-zenhei libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libgbm1 libgtk-3-0 libnss3-dev libpangocairo-1.0-0 libxss1
- pip install -U poetry black
- poetry install
- poetry run doit migrate
- poetry run pytest .
# - poetry run ./manage.py test
# coverage: /^TOTAL.*\s+(\d+\%)$/
deploy to staging:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment