1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-26 17:32:22 +00:00
nk20/.gitlab-ci.yml

52 lines
925 B
YAML
Raw Normal View History

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
2020-09-01 13:13:08 +00:00
# Debian Buster
2020-02-18 19:58:01 +00:00
py37-django22:
2019-07-08 10:55:48 +00:00
stage: test
2021-02-21 22:38:55 +00:00
image: otthorn/nk20_ci_37
2020-09-01 13:19:06 +00:00
script: tox -e py37-django22
2019-07-08 10:55:48 +00:00
2020-09-01 13:13:08 +00:00
# Ubuntu 20.04
py38-django22:
stage: test
2021-02-21 22:46:20 +00:00
image: otthorn/nk20_ci_38
2020-09-01 13:19:06 +00:00
script: tox -e py38-django22
# Debian Bullseye
py39-django22:
stage: test
2021-02-21 22:46:20 +00:00
image: otthorn/nk20_ci_39
script: tox -e py39-django22
2021-02-21 22:38:55 +00:00
# Tox linter
2019-07-08 10:55:48 +00:00
linters:
2020-02-18 19:58:01 +00:00
stage: quality-assurance
2020-09-02 10:14:41 +00:00
image: debian:buster-backports
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