mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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.
This commit is contained in:
parent
b5d0e667cc
commit
87550d1957
|
@ -30,7 +30,7 @@ steps:
|
|||
command: "reviewdog -reporter=github-check -filter-mode=nofilter -fail-on-error"
|
||||
retry:
|
||||
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"
|
||||
command: "authelia-scripts --log-level debug ci --buildkite"
|
||||
|
@ -67,7 +67,7 @@ steps:
|
|||
if: build.env("CI_BYPASS") != "true"
|
||||
|
||||
- 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"
|
||||
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
|
||||
|
@ -75,14 +75,14 @@ steps:
|
|||
concurrency_group: "tests"
|
||||
depends_on:
|
||||
- "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:
|
||||
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"
|
||||
command: "echo End of concurrency gate"
|
||||
concurrency: 3
|
||||
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
|
|
@ -29,7 +29,7 @@ cat << EOF
|
|||
EOF
|
||||
if [[ "${BUILD_ARCH}" == "coverage" ]]; then
|
||||
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
|
||||
else
|
||||
cat << EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user