*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 4b49c0e1 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

CI: replace deprecated only keyword with rules:if

* also, run tests on merge requests
parent d0a0e9eb
No related branches found
No related tags found
1 merge request!152Fix login page styling
...@@ -12,6 +12,9 @@ run-tests: ...@@ -12,6 +12,9 @@ run-tests:
- pipenv run pip install -e '.[tests,opensearch2]' - pipenv run pip install -e '.[tests,opensearch2]'
- pipenv run ./run-tests.sh - pipenv run ./run-tests.sh
coverage: /TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/ coverage: /TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_BRANCH == '$CI_DEFAULT_BRANCH'
sonarqube-check: sonarqube-check:
stage: testing stage: testing
...@@ -25,9 +28,9 @@ sonarqube-check: ...@@ -25,9 +28,9 @@ sonarqube-check:
script: script:
- sonar-scanner - sonar-scanner
allow_failure: true allow_failure: true
only: rules:
- master - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- merge_requests - if: $CI_COMMIT_BRANCH == '$CI_DEFAULT_BRANCH'
pypi-release: pypi-release:
stage: release stage: release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment