Skip tests on backported docs branches. (#13612)
* Remove unnecessary branch filters; we rely instead on exiting the jobs on inappropriate branches, since otherwise GH's required checks won't be satisfied.
This commit is contained in:
parent
150b1ac67a
commit
a5bfd500ca
|
@ -173,7 +173,7 @@ jobs:
|
|||
- run:
|
||||
command: |
|
||||
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
||||
# stop the job from this step
|
||||
circleci-agent step halt
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ jobs:
|
|||
- run:
|
||||
command: |
|
||||
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
||||
# stop the job from this step
|
||||
circleci-agent step halt
|
||||
}
|
||||
|
@ -580,7 +580,7 @@ jobs:
|
|||
- run:
|
||||
command: |
|
||||
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
||||
# stop the job from this step
|
||||
circleci-agent step halt
|
||||
}
|
||||
|
@ -852,7 +852,7 @@ jobs:
|
|||
- run:
|
||||
command: |
|
||||
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
||||
# stop the job from this step
|
||||
circleci-agent step halt
|
||||
}
|
||||
|
@ -1067,19 +1067,9 @@ workflows:
|
|||
requires:
|
||||
- pre-flight-checks
|
||||
- test-go-race:
|
||||
filters:
|
||||
branches:
|
||||
ignore:
|
||||
- /^docs\/.*/
|
||||
- /^ui\/.*/
|
||||
requires:
|
||||
- pre-flight-checks
|
||||
- test-go-race-remote-docker:
|
||||
filters:
|
||||
branches:
|
||||
ignore:
|
||||
- /^docs\/.*/
|
||||
- /^ui\/.*/
|
||||
requires:
|
||||
- pre-flight-checks
|
||||
- website-docker-image:
|
||||
|
|
|
@ -6,7 +6,7 @@ steps:
|
|||
name: Check branch name
|
||||
command: |
|
||||
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
|
||||
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
||||
# stop the job from this step
|
||||
circleci-agent step halt
|
||||
}
|
||||
|
|
|
@ -34,21 +34,9 @@ jobs:
|
|||
- test-go-race:
|
||||
requires:
|
||||
- pre-flight-checks
|
||||
filters:
|
||||
branches:
|
||||
# UI and Docs-only branches should skip go tests
|
||||
ignore:
|
||||
- /^docs\/.*/
|
||||
- /^ui\/.*/
|
||||
- test-go-race-remote-docker:
|
||||
requires:
|
||||
- pre-flight-checks
|
||||
filters:
|
||||
branches:
|
||||
# UI and Docs-only branches should skip go tests
|
||||
ignore:
|
||||
- /^docs\/.*/
|
||||
- /^ui\/.*/
|
||||
- website-docker-image:
|
||||
context: vault-docs
|
||||
filters:
|
||||
|
|
Loading…
Reference in New Issue