1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-27 16:13:04 +00:00
med/.gitlab-ci.yml

49 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
2021-10-23 11:54:08 +00:00
python3-django python3-django-reversion python3-djangorestframework
python3-docutils 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
2021-10-23 11:54:08 +00:00
python3-django python3-django-reversion python3-djangorestframework
python3-docutils tox
2020-09-23 18:51:42 +00:00
script: tox -e py38
2020-05-12 13:09:06 +00:00
2020-12-28 21:55:48 +00:00
py39-django22:
stage: test
image: debian:bullseye
before_script:
- >
apt-get update &&
apt-get install --no-install-recommends -y
2021-10-23 11:54:08 +00:00
python3-django python3-django-reversion python3-djangorestframework
python3-docutils tox
2020-12-28 21:55:48 +00:00
script: tox -e py39
2019-08-02 11:24:49 +00:00
linters:
2020-09-23 18:14:44 +00:00
stage: quality-assurance
2021-10-23 11:54:08 +00:00
image: debian:bullseye
2020-09-23 18:14:44 +00:00
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