1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-06 07:13:00 +00:00
nk20/.gitlab-ci.yml

56 lines
2.1 KiB
YAML
Raw Normal View History

2019-07-08 12:55:48 +02:00
stages:
- test
2020-02-18 20:58:01 +01:00
- quality-assurance
2019-07-08 12:55:48 +02:00
2020-09-01 15:13:08 +02:00
# Debian Buster
2020-02-18 20:58:01 +01:00
py37-django22:
2019-07-08 12:55:48 +02:00
stage: test
2020-09-02 12:14:41 +02:00
image: debian:buster-backports
2020-09-01 15:19:06 +02:00
before_script:
2020-09-02 12:14:41 +02:00
- >
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
2020-09-01 15:19:06 +02:00
script: tox -e py37-django22
2019-07-08 12:55:48 +02:00
2020-09-01 15:13:08 +02:00
# Ubuntu 20.04
py38-django22:
stage: test
2020-09-01 15:13:08 +02:00
image: ubuntu:20.04
2020-09-01 15:19:06 +02:00
before_script:
2020-09-01 15:42:00 +02:00
# Fix tzdata prompt
- ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone
2020-09-01 15:19:06 +02:00
- >
apt-get update &&
2020-09-02 12:14:41 +02:00
apt-get install --no-install-recommends -t buster-backports -y
python3-django python3-django-crispy-forms
2020-09-01 15:19:06 +02:00
python3-django-extensions python3-django-filters python3-django-polymorphic
python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil
2020-09-02 12:14:41 +02:00
python3-babel python3-lockfile python3-pip python3-phonenumbers
python3-bs4 python3-setuptools tox
texlive-latex-extra texlive-lang-french lmodern texlive-fonts-recommended
2020-09-01 15:19:06 +02:00
script: tox -e py38-django22
2019-07-08 12:55:48 +02:00
linters:
2020-02-18 20:58:01 +01:00
stage: quality-assurance
2020-09-02 12:14:41 +02:00
image: debian:buster-backports
2020-09-01 15:19:06 +02:00
before_script:
2020-09-02 12:14:41 +02:00
- >
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
2019-07-08 12:55:48 +02:00
script: tox -e linters
2020-02-18 20:58:01 +01:00
# Be nice to new contributors, but please use `tox`
allow_failure: true