mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 15:06:37 +00:00
[CI] Only upload test results if buildkite-agent is present (#119954)
This patch modifies the monolithic shell scrips to only run if the buildkite-agent application is present. This allows for running the scripts to completion outside of buildkite (eg inside of a GHA pipeline).
This commit is contained in:
parent
a35db2880a
commit
a24645463b
@ -34,8 +34,11 @@ function at-exit {
|
||||
|
||||
# If building fails there will be no results files.
|
||||
shopt -s nullglob
|
||||
if command -v buildkite-agent 2>&1 >/dev/null
|
||||
then
|
||||
python3 "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":linux: Linux x64 Test Results" \
|
||||
"linux-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
|
||||
fi
|
||||
}
|
||||
trap at-exit EXIT
|
||||
|
||||
|
@ -33,8 +33,11 @@ function at-exit {
|
||||
|
||||
# If building fails there will be no results files.
|
||||
shopt -s nullglob
|
||||
if command -v buildkite-agent 2>&1 >/dev/null
|
||||
then
|
||||
python "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":windows: Windows x64 Test Results" \
|
||||
"windows-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
|
||||
fi
|
||||
}
|
||||
trap at-exit EXIT
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user