ci(buildkite): add [skip-test] and [test-skip] conditionals (#2265)
If a commit message includes either `[skip-test]` or `[test-skip]` a some CI steps will be ignored. This is to allow rapid deployments and prototyping when attempting fixes, under no circumstances should any PR to master be accepted with said tags/conditionals.pull/2267/head
parent
b5d0e667cc
commit
87550d1957
|
@ -30,7 +30,7 @@ steps:
|
||||||
command: "reviewdog -reporter=github-check -filter-mode=nofilter -fail-on-error"
|
command: "reviewdog -reporter=github-check -filter-mode=nofilter -fail-on-error"
|
||||||
retry:
|
retry:
|
||||||
automatic: true
|
automatic: true
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.message !~ /\[(skip test|test skip)\]/
|
||||||
|
|
||||||
- label: ":hammer_and_wrench: Unit Test"
|
- label: ":hammer_and_wrench: Unit Test"
|
||||||
command: "authelia-scripts --log-level debug ci --buildkite"
|
command: "authelia-scripts --log-level debug ci --buildkite"
|
||||||
|
@ -67,7 +67,7 @@ steps:
|
||||||
if: build.env("CI_BYPASS") != "true"
|
if: build.env("CI_BYPASS") != "true"
|
||||||
|
|
||||||
- wait:
|
- wait:
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" && build.message !~ /\[(skip test|test skip)\]/
|
||||||
|
|
||||||
- label: ":chrome: Integration Tests"
|
- label: ":chrome: Integration Tests"
|
||||||
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
|
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
|
||||||
|
@ -75,14 +75,14 @@ steps:
|
||||||
concurrency_group: "tests"
|
concurrency_group: "tests"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "build-docker-linux-coverage"
|
- "build-docker-linux-coverage"
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" && build.message !~ /\[(skip test|test skip)\]/
|
||||||
|
|
||||||
- wait:
|
- wait:
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" && build.message !~ /\[(skip test|test skip)\]/
|
||||||
|
|
||||||
- label: ":vertical_traffic_light: Test Concurrency Gate"
|
- label: ":vertical_traffic_light: Test Concurrency Gate"
|
||||||
command: "echo End of concurrency gate"
|
command: "echo End of concurrency gate"
|
||||||
concurrency: 3
|
concurrency: 3
|
||||||
concurrency_group: "tests"
|
concurrency_group: "tests"
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" && build.message !~ /\[(skip test|test skip)\]/
|
||||||
EOF
|
EOF
|
|
@ -29,7 +29,7 @@ cat << EOF
|
||||||
EOF
|
EOF
|
||||||
if [[ "${BUILD_ARCH}" == "coverage" ]]; then
|
if [[ "${BUILD_ARCH}" == "coverage" ]]; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/
|
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.message !~ /\[(skip test|test skip)\]/
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
Loading…
Reference in New Issue