med/.gitlab-ci.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2019-08-02 11:24:49 +00:00
stages:
- test
2020-09-23 18:14:44 +00:00
- quality-assurance
2019-08-02 11:24:49 +00:00
2020-09-23 18:14:44 +00:00
py37-django22:
2019-08-02 11:24:49 +00:00
stage: test
2020-09-23 18:14:44 +00:00
image: debian:buster-backports
before_script:
- >
apt-get update &&
apt-get install --no-install-recommends -t buster-backports -y
2020-09-23 18:38:26 +00:00
python3-django python3-django-casclient python3-django-reversion python3-djangorestframework
2020-09-23 18:47:24 +00:00
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi tox
2019-08-02 11:24:49 +00:00
script: tox -e py37
2020-09-23 18:14:44 +00:00
py38-django22:
2020-05-12 13:09:06 +00:00
stage: test
2020-09-23 18:14:44 +00:00
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 -y
2020-09-23 18:38:26 +00:00
python3-django python3-django-casclient python3-django-reversion python3-djangorestframework
2020-09-23 18:47:24 +00:00
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi tox
2020-09-23 18:51:42 +00:00
script: tox -e py38
2020-05-12 13:09:06 +00:00
2019-08-02 11:24:49 +00:00
linters:
2020-09-23 18:14:44 +00:00
stage: quality-assurance
image: debian:buster-backports
before_script:
- apt-get update && apt-get install -y tox
2019-08-02 11:24:49 +00:00
script: tox -e linters
2020-09-23 18:14:44 +00:00
# Be nice to new contributors, but please use `tox`
2020-02-18 20:34:12 +00:00
allow_failure: true