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

49 lines
1.2 KiB
YAML

stages:
- test
- quality-assurance
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-reversion python3-djangorestframework
python3-docutils tox
script: tox -e py37
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 -y
python3-django python3-django-reversion python3-djangorestframework
python3-docutils tox
script: tox -e py38
py39-django22:
stage: test
image: debian:bullseye
before_script:
- >
apt-get update &&
apt-get install --no-install-recommends -y
python3-django python3-django-reversion python3-djangorestframework
python3-docutils tox
script: tox -e py39
linters:
stage: quality-assurance
image: debian:bullseye
before_script:
- apt-get update && apt-get install -y tox
script: tox -e linters
# Be nice to new contributors, but please use `tox`
allow_failure: true