forked from Mirror/pmbootstrap
ci: only run integration tests when there are code changes
This prevents running the integration tests, which cause load on the CI and take time, when the change is unrelated to pmb functionality (e.g. documentation updates). Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2608
This commit is contained in:
parent
15007e17d2
commit
226eeed6ff
1 changed files with 8 additions and 0 deletions
|
@ -127,6 +127,14 @@ deploy:
|
||||||
|
|
||||||
.integration:
|
.integration:
|
||||||
stage: integration-test
|
stage: integration-test
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
|
changes:
|
||||||
|
- ".ci/integration_tests/**/*"
|
||||||
|
- "helpers/**/*"
|
||||||
|
- "pmb/**/*"
|
||||||
|
- .ci/integration.sh
|
||||||
|
- .gitlab-ci.yml
|
||||||
before_script:
|
before_script:
|
||||||
- *global_before_scripts
|
- *global_before_scripts
|
||||||
- apk upgrade -U
|
- apk upgrade -U
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue