summaryrefslogtreecommitdiff
path: root/.buildkite/hooks
diff options
context:
space:
mode:
authorAmir Zarrinkafsh <nightah@me.com>2021-10-08 12:08:43 +1100
committerGitHub <noreply@github.com>2021-10-08 12:08:43 +1100
commitb606ec6752c509b799bfff33dd6c27cfa7cf9131 (patch)
treef93a725dd6a828eb8d812408c3ecc1314ea5458a /.buildkite/hooks
parent183f0974aed330e5f0a4ef95fc18ee27fa23aa5a (diff)
ci(buildkite): add agent control to standalone job (#2469)
Diffstat (limited to '.buildkite/hooks')
-rwxr-xr-x.buildkite/hooks/post-command6
1 files changed, 3 insertions, 3 deletions
diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command
index 9817ef9a3..490ff8eb8 100755
--- a/.buildkite/hooks/post-command
+++ b/.buildkite/hooks/post-command
@@ -13,12 +13,12 @@ if [[ ! "${BUILDKITE_BRANCH}" =~ ^(v.*) ]] && [[ "${BUILDKITE_COMMAND_EXIT_STATU
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]] || [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
echo "--- :codecov: Upload coverage reports"
NAME="UnitTest"
+ if [[ "${SUITE}" != "" ]]; then
+ NAME=${SUITE}
+ fi
if [[ "${BUILDKITE_AGENT_META_DATA_CODECOV}" == "verbose" ]]; then
BUILDKITE_AGENT_META_DATA_CODECOV="-v"
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}"
if [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
cd web && pnpm report