1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-30 10:13:03 +00:00
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
python3-django python3-django-casclient python3-django-reversion python3-djangorestframework \
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi
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
python3-django python3-django-casclient python3-django-reversion python3-djangorestframework \
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi
2020-05-12 13:09:06 +00:00
script: tox -e py37
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