Commit a395cd40 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

optimize gitlab-ci configuration

* only run debian packaging if test succeeded
* only run debian packaging if triggerd, scheduled or commit is a tag
parent 7d0f6b15
Pipeline #830 passed with stage
in 4 minutes and 37 seconds
......@@ -4,15 +4,21 @@ before_script:
- virtualenv -p python3 "$CI_PROJECT_DIR/gitlab-ci-build-venv"
- source "$CI_PROJECT_DIR/gitlab-ci-build-venv/bin/activate"
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install --upgrade -r requirements.txt
test:
make_test:
stage: test
script:
- make test
# The latest built deb package is available under the following URL:
# https://git.hack-hro.de/stadtgestalten/stadtgestalten/builds/artifacts/master/raw/build/debian/export/stadtgestalten.deb?job=deb-package
deb-package:
make_deb_package:
stage: deploy
only:
- tags
- triggers
- schedules
script:
- make dist-deb-packages-directory
artifacts:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment