mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Try to fix Gitlab CI
This commit is contained in:
parent
d89f6dcf5c
commit
9b2a8c4f6f
@ -1,24 +1,28 @@
|
|||||||
image: python:3.8
|
image: debian:buster-backports
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- quality-assurance
|
- quality-assurance
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pip install tox
|
# We do not include uwsgi and LaTeX here
|
||||||
|
- apt-get update && \
|
||||||
|
apt-get install -t buster-backports -y python3-django python3-django-crispy-forms \
|
||||||
|
python3-django-extensions python3-django-filters python3-django-polymorphic \
|
||||||
|
python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil \
|
||||||
|
python3-babel python3-lockfile python3-pip python3-phonenumbers ipython3 \
|
||||||
|
gettext libjs-bootstrap4 fonts-font-awesome tox && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
py37-django22:
|
py37-django22:
|
||||||
image: python:3.7
|
|
||||||
stage: test
|
stage: test
|
||||||
script: tox -e py37-django22
|
script: tox -e py37-django22
|
||||||
|
|
||||||
py38-django22:
|
py38-django22:
|
||||||
image: python:3.8
|
|
||||||
stage: test
|
stage: test
|
||||||
script: tox -e py38-django22
|
script: tox -e py38-django22
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
image: python:3.8
|
|
||||||
stage: quality-assurance
|
stage: quality-assurance
|
||||||
script: tox -e linters
|
script: tox -e linters
|
||||||
|
|
||||||
|
8
tox.ini
8
tox.ini
@ -13,9 +13,7 @@ skipsdist = True
|
|||||||
setenv =
|
setenv =
|
||||||
PYTHONWARNINGS = all
|
PYTHONWARNINGS = all
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements/base.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/requirements/cas.txt
|
|
||||||
-r{toxinidir}/requirements/production.txt
|
|
||||||
coverage
|
coverage
|
||||||
commands =
|
commands =
|
||||||
./manage.py makemigrations
|
./manage.py makemigrations
|
||||||
@ -24,9 +22,7 @@ commands =
|
|||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements/base.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/requirements/cas.txt
|
|
||||||
-r{toxinidir}/requirements/production.txt
|
|
||||||
flake8
|
flake8
|
||||||
flake8-colors
|
flake8-colors
|
||||||
flake8-import-order
|
flake8-import-order
|
||||||
|
Loading…
Reference in New Issue
Block a user