1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-06 15:23:00 +00:00
nk20/.gitlab-ci.yml

58 lines
1.0 KiB
YAML
Raw Normal View History

2019-07-08 12:55:48 +02:00
stages:
- test
2020-02-18 20:58:01 +01:00
- quality-assurance
2020-11-26 02:55:36 +01:00
- docs
2019-07-08 12:55:48 +02:00
2020-09-05 08:17:27 +02:00
# Also fetch submodules
variables:
GIT_SUBMODULE_STRATEGY: recursive
2020-09-01 15:13:08 +02:00
# Debian Buster
2020-02-18 20:58:01 +01:00
py37-django22:
2019-07-08 12:55:48 +02:00
stage: test
2021-02-21 23:38:55 +01:00
image: otthorn/nk20_ci_37
2020-09-01 15:19:06 +02:00
script: tox -e py37-django22
2019-07-08 12:55:48 +02:00
2020-09-01 15:13:08 +02:00
# Ubuntu 20.04
py38-django22:
stage: test
2021-02-21 23:46:20 +01:00
image: otthorn/nk20_ci_38
2020-09-01 15:19:06 +02:00
script: tox -e py38-django22
# Debian Bullseye
py39-django22:
stage: test
2021-02-21 23:46:20 +01:00
image: otthorn/nk20_ci_39
script: tox -e py39-django22
2021-02-21 23:38:55 +01:00
# Tox linter
2019-07-08 12:55:48 +02:00
linters:
2020-02-18 20:58:01 +01:00
stage: quality-assurance
2020-09-02 12:14:41 +02:00
image: debian:buster-backports
2020-09-01 15:19:06 +02:00
before_script:
2020-09-04 07:47:52 +02:00
- apt-get update && apt-get install -y tox
2019-07-08 12:55:48 +02:00
script: tox -e linters
2020-02-18 20:58:01 +01:00
# Be nice to new contributors, but please use `tox`
allow_failure: true
2020-11-26 02:55:36 +01:00
2021-02-23 23:02:51 +01:00
# Ansible linter
ansible-linter:
stage: quality-assurance
image: otthorn/nk20_ci_ansiblelint
script: ansible-lint ansible/
2020-11-26 02:55:36 +01: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 03:13:57 +01:00
- docs/_build
2020-11-26 02:55:36 +01:00
expire_in: 1 day