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:
|
||||
- test
|
||||
- quality-assurance
|
||||
|
||||
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:
|
||||
image: python:3.7
|
||||
stage: test
|
||||
script: tox -e py37-django22
|
||||
|
||||
py38-django22:
|
||||
image: python:3.8
|
||||
stage: test
|
||||
script: tox -e py38-django22
|
||||
|
||||
linters:
|
||||
image: python:3.8
|
||||
stage: quality-assurance
|
||||
script: tox -e linters
|
||||
|
||||
|
8
tox.ini
8
tox.ini
@ -13,9 +13,7 @@ skipsdist = True
|
||||
setenv =
|
||||
PYTHONWARNINGS = all
|
||||
deps =
|
||||
-r{toxinidir}/requirements/base.txt
|
||||
-r{toxinidir}/requirements/cas.txt
|
||||
-r{toxinidir}/requirements/production.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
coverage
|
||||
commands =
|
||||
./manage.py makemigrations
|
||||
@ -24,9 +22,7 @@ commands =
|
||||
|
||||
[testenv:linters]
|
||||
deps =
|
||||
-r{toxinidir}/requirements/base.txt
|
||||
-r{toxinidir}/requirements/cas.txt
|
||||
-r{toxinidir}/requirements/production.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
flake8
|
||||
flake8-colors
|
||||
flake8-import-order
|
||||
|
Loading…
Reference in New Issue
Block a user