mirror of https://gitlab.crans.org/bde/nk20
56 lines
2.1 KiB
YAML
56 lines
2.1 KiB
YAML
stages:
|
|
- test
|
|
- quality-assurance
|
|
|
|
# Debian Buster
|
|
py37-django22:
|
|
stage: test
|
|
image: debian:buster-backports
|
|
before_script:
|
|
- >
|
|
apt-get update &&
|
|
apt-get install --no-install-recommends -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
|
|
python3-bs4 python3-setuptools tox
|
|
texlive-latex-extra texlive-lang-french lmodern texlive-fonts-recommended
|
|
script: tox -e py37-django22
|
|
|
|
# Ubuntu 20.04
|
|
py38-django22:
|
|
stage: test
|
|
image: ubuntu:20.04
|
|
before_script:
|
|
# Fix tzdata prompt
|
|
- ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone
|
|
- >
|
|
apt-get update &&
|
|
apt-get install --no-install-recommends -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
|
|
python3-bs4 python3-setuptools tox
|
|
texlive-latex-extra texlive-lang-french lmodern texlive-fonts-recommended
|
|
script: tox -e py38-django22
|
|
|
|
linters:
|
|
stage: quality-assurance
|
|
image: debian:buster-backports
|
|
before_script:
|
|
- >
|
|
apt-get update &&
|
|
apt-get install --no-install-recommends -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
|
|
python3-bs4 python3-setuptools tox
|
|
texlive-latex-extra texlive-lang-french lmodern texlive-fonts-recommended
|
|
script: tox -e linters
|
|
|
|
# Be nice to new contributors, but please use `tox`
|
|
allow_failure: true
|