nk20/.gitlab-ci.yml

66 lines
1.2 KiB
YAML
Raw Permalink 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
2021-02-23 22:02:51 +00:00
# Ansible linter
ansible-linter:
stage: quality-assurance
image: otthorn/nk20_ci_ansiblelint
script: ansible-lint ansible/
# Docker linter
docker-linter:
stage: quality-assurance
image: hadolint/hadolint
script:
- hadolint -c .hadolint Dockerfile
- hadolint -c .hadolint docker_ci/Dockerfile.*
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