2019-07-08 10:55:48 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2020-02-18 19:58:01 +00:00
|
|
|
- quality-assurance
|
2020-11-26 01:55:36 +00:00
|
|
|
- docs
|
2019-07-08 10:55:48 +00:00
|
|
|
|
2020-09-05 06:17:27 +00:00
|
|
|
# Also fetch submodules
|
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2024-07-11 09:58:37 +00:00
|
|
|
# Ubuntu 22.04
|
|
|
|
py310-django50:
|
2020-07-30 18:45:17 +00:00
|
|
|
stage: test
|
2024-07-11 09:58:37 +00:00
|
|
|
image: ubuntu:22.04
|
2020-09-01 13:19:06 +00:00
|
|
|
before_script:
|
2020-09-01 13:42:00 +00:00
|
|
|
# Fix tzdata prompt
|
|
|
|
- ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone
|
2020-09-01 13:19:06 +00:00
|
|
|
- >
|
|
|
|
apt-get update &&
|
2020-09-02 10:30:38 +00:00
|
|
|
apt-get install --no-install-recommends -y
|
2020-09-02 10:14:41 +00:00
|
|
|
python3-django python3-django-crispy-forms
|
2020-09-01 13:19:06 +00:00
|
|
|
python3-django-extensions python3-django-filters python3-django-polymorphic
|
2020-09-21 08:31:42 +00:00
|
|
|
python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil
|
2020-09-21 13:13:43 +00:00
|
|
|
python3-babel python3-lockfile python3-pip python3-phonenumbers python3-memcache
|
2020-09-06 13:30:12 +00:00
|
|
|
python3-bs4 python3-setuptools tox texlive-xetex
|
2024-07-11 09:58:37 +00:00
|
|
|
script: tox -e py310-django50
|
2020-07-30 18:45:17 +00:00
|
|
|
|
2024-07-11 09:58:37 +00:00
|
|
|
# Debian Bookworm
|
|
|
|
py311-django50:
|
2020-12-23 17:48:09 +00:00
|
|
|
stage: test
|
2024-07-11 09:58:37 +00:00
|
|
|
image: debian:bookworm
|
2020-12-23 17:48:09 +00:00
|
|
|
before_script:
|
|
|
|
- >
|
|
|
|
apt-get update &&
|
|
|
|
apt-get install --no-install-recommends -y
|
|
|
|
python3-django python3-django-crispy-forms
|
|
|
|
python3-django-extensions python3-django-filters python3-django-polymorphic
|
|
|
|
python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil
|
|
|
|
python3-babel python3-lockfile python3-pip python3-phonenumbers python3-memcache
|
|
|
|
python3-bs4 python3-setuptools tox texlive-xetex
|
2024-07-11 09:58:37 +00:00
|
|
|
script: tox -e py311-django50
|
2020-12-23 17:48:09 +00:00
|
|
|
|
2019-07-08 10:55:48 +00:00
|
|
|
linters:
|
2020-02-18 19:58:01 +00:00
|
|
|
stage: quality-assurance
|
2024-05-26 16:41:49 +00:00
|
|
|
image: debian:bullseye
|
2020-09-01 13:19:06 +00:00
|
|
|
before_script:
|
2020-09-04 05:47:52 +00:00
|
|
|
- apt-get update && apt-get install -y tox
|
2019-07-08 10:55:48 +00:00
|
|
|
script: tox -e linters
|
2020-02-18 19:58:01 +00:00
|
|
|
|
|
|
|
# Be nice to new contributors, but please use `tox`
|
|
|
|
allow_failure: true
|
2020-11-26 01:55:36 +00:00
|
|
|
|
|
|
|
# Compile documentation
|
|
|
|
documentation:
|
|
|
|
stage: docs
|
|
|
|
image: sphinxdoc/sphinx
|
|
|
|
before_script:
|
|
|
|
- pip install sphinx-rtd-theme
|
|
|
|
- cd docs
|
|
|
|
script:
|
|
|
|
- make dirhtml
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-11-26 02:13:57 +00:00
|
|
|
- docs/_build
|
2020-11-26 01:55:36 +00:00
|
|
|
expire_in: 1 day
|