mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
ci(buildkite): add agent control to standalone job (#2469)
This commit is contained in:
parent
183f0974ae
commit
b606ec6752
|
@ -13,12 +13,12 @@ if [[ ! "${BUILDKITE_BRANCH}" =~ ^(v.*) ]] && [[ "${BUILDKITE_COMMAND_EXIT_STATU
|
||||||
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]] || [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]] || [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
||||||
echo "--- :codecov: Upload coverage reports"
|
echo "--- :codecov: Upload coverage reports"
|
||||||
NAME="UnitTest"
|
NAME="UnitTest"
|
||||||
|
if [[ "${SUITE}" != "" ]]; then
|
||||||
|
NAME=${SUITE}
|
||||||
|
fi
|
||||||
if [[ "${BUILDKITE_AGENT_META_DATA_CODECOV}" == "verbose" ]]; then
|
if [[ "${BUILDKITE_AGENT_META_DATA_CODECOV}" == "verbose" ]]; then
|
||||||
BUILDKITE_AGENT_META_DATA_CODECOV="-v"
|
BUILDKITE_AGENT_META_DATA_CODECOV="-v"
|
||||||
fi
|
fi
|
||||||
if [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
|
||||||
NAME=$(echo ${BUILDKITE_LABEL/:selenium: /} | awk '{ print $1 }')
|
|
||||||
fi
|
|
||||||
codecov -Z -c -f 'coverage*.txt' -n ${NAME} -F backend "${BUILDKITE_AGENT_META_DATA_CODECOV}"
|
codecov -Z -c -f 'coverage*.txt' -n ${NAME} -F backend "${BUILDKITE_AGENT_META_DATA_CODECOV}"
|
||||||
if [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
if [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
||||||
cd web && pnpm report
|
cd web && pnpm report
|
||||||
|
|
|
@ -23,10 +23,19 @@ cat << EOF
|
||||||
agents:
|
agents:
|
||||||
suite: "kubernetes"
|
suite: "kubernetes"
|
||||||
EOF
|
EOF
|
||||||
|
elif [[ "${SUITE_NAME}" = "Standalone" ]]; then
|
||||||
|
cat << EOF
|
||||||
|
agents:
|
||||||
|
suite: "standalone"
|
||||||
|
EOF
|
||||||
else
|
else
|
||||||
cat << EOF
|
cat << EOF
|
||||||
agents:
|
agents:
|
||||||
suite: "all"
|
suite: "all"
|
||||||
EOF
|
EOF
|
||||||
|
cat << EOF
|
||||||
|
env:
|
||||||
|
SUITE: "${SUITE_NAME}"
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
done
|
done
|
Loading…
Reference in New Issue
Block a user