diff options
author | Jelle van der Waa <jelle@archlinux.org> | 2020-05-11 21:37:21 +0200 |
---|---|---|
committer | jelle van der Waa <jelle@vdwaa.nl> | 2020-06-06 16:27:47 +0200 |
commit | bd4bbdfbd018b6ea6502e03f426996656dc8531e (patch) | |
tree | 2198f7f5651978afd637b1ebfcab9d27cfbc1823 | |
parent | a3f1f6166bd258b331963b302729fd0bbeee82c5 (diff) | |
download | archweb-bd4bbdfbd018b6ea6502e03f426996656dc8531e.tar.gz archweb-bd4bbdfbd018b6ea6502e03f426996656dc8531e.zip |
Add gitlab CI integration
Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
-rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..4a4600f2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +image: archlinux/base + +before_script: + - pacman -Syu --needed --noconfirm python-pip git + - pip install pylint coverage + - pip install -r requirements.txt + - python manage.py collectstatic --noinput + +lint: + script: + - pylint devel main mirrors news packages releng templates todolists visualize *.py + +# TODO: https://docs.gitlab.com/ee/ci/junit_test_reports.html +test: + script: + - coverage run --rcfile .coveragerc manage.py test |