- include/**/*
- src/**/*
when: on_success
- # Run when re-enabling a disabled farm, but not when disabling it
- - !reference [.re-enable-farm-rules, rules]
+ # Don't run when disabling a farm
+ - !reference [.disable-farm-rules, rules]
# Otherwise, build/test jobs won't run because no rule matched.
- .gitlab-ci.yml
- .gitlab-ci/**/*
when: on_success
- # Run when re-enabling a disabled farm, but not when disabling it
- - !reference [.re-enable-farm-rules, rules]
+ # Don't run when disabling a farm
+ - !reference [.disable-farm-rules, rules]
# Run pipeline by default if it was triggered by Marge Bot, is for a
# merge request, and any files affecting the pipeline were changed
- if: *is-pre-merge-for-marge
- !reference [.freedreno-farm-rules, rules]
-# Skip container & build jobs when disabling any farm, and run them if any farm
-# gets re-enabled.
-.re-enable-farm-rules:
+# Skip container & build jobs when disabling any farm
+.disable-farm-rules:
rules:
# changes(disabled) + exists(disabled) = disabling the farm
- changes: [ .ci-farms-disabled/microsoft ]
- changes: [ .ci-farms-disabled/freedreno ]
exists: [ .ci-farms-disabled/freedreno ]
when: never
- # Any other change to ci-farms-disabled/* means some farm is getting re-enabled
- - changes: [ .ci-farms-disabled/* ]
- when: on_success