mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
49aa5e0eb8
* ci(buildkite): change to concurrency gates Continuation of #1751. * ci(buildkite): optimise concurrency gates
36 lines
710 B
Bash
Executable File
36 lines
710 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
for SUITE_NAME in $(authelia-scripts suites list); do
|
|
cat << EOF
|
|
- label: ":selenium: ${SUITE_NAME} Suite"
|
|
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --headless"
|
|
retry:
|
|
automatic: true
|
|
EOF
|
|
if [[ "${SUITE_NAME}" = "ActiveDirectory" ]]; then
|
|
cat << EOF
|
|
agents:
|
|
suite: "activedirectory"
|
|
EOF
|
|
elif [[ "${SUITE_NAME}" = "Kubernetes" ]]; then
|
|
cat << EOF
|
|
agents:
|
|
suite: "kubernetes"
|
|
EOF
|
|
else
|
|
cat << EOF
|
|
agents:
|
|
suite: "all"
|
|
EOF
|
|
fi
|
|
done
|
|
cat << EOF
|
|
|
|
- wait
|
|
|
|
- label: ":vertical_traffic_light: Test Concurrency Gate"
|
|
command: "echo End of concurrency gate"
|
|
concurrency: 3
|
|
concurrency_group: "tests"
|
|
EOF |