Test project on Debian and Ubuntu
This commit is contained in:
parent
d1e9693647
commit
ad33d33e6c
|
@ -1,22 +1,37 @@
|
||||||
image: python:3.8
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- quality-assurance
|
||||||
|
|
||||||
before_script:
|
py37-django22:
|
||||||
- pip install tox
|
|
||||||
|
|
||||||
python37:
|
|
||||||
image: python:3.7
|
|
||||||
stage: test
|
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-casclient python3-django-reversion python3-djangorestframework \
|
||||||
|
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi
|
||||||
script: tox -e py37
|
script: tox -e py37
|
||||||
|
|
||||||
python38:
|
py38-django22:
|
||||||
image: python:3.8
|
|
||||||
stage: test
|
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-casclient python3-django-reversion python3-djangorestframework \
|
||||||
|
python3-docutils python3-pil python3-tz python3-six python3-sqlparse python3-stdnum python3-yaml python3-coreapi
|
||||||
script: tox -e py37
|
script: tox -e py37
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
stage: test
|
stage: quality-assurance
|
||||||
|
image: debian:buster-backports
|
||||||
|
before_script:
|
||||||
|
- apt-get update && apt-get install -y tox
|
||||||
script: tox -e linters
|
script: tox -e linters
|
||||||
|
|
||||||
|
# Be nice to new contributors, but please use `tox`
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
Loading…
Reference in New Issue