ci: remove stale code for Azure Pipelines
Support for Azure Pipelines has been retired in 6081d3898f
(ci: retire
the Azure Pipelines definition, 2020-04-11) in favor of GitHub Actions.
Our CI library still has some infrastructure left for Azure though that
is now unused. Remove it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
6bc06e8f20
commit
e39e332e50
21
ci/lib.sh
21
ci/lib.sh
@ -206,26 +206,7 @@ export TERM=${TERM:-dumb}
|
|||||||
# Clear MAKEFLAGS that may come from the outside world.
|
# Clear MAKEFLAGS that may come from the outside world.
|
||||||
export MAKEFLAGS=
|
export MAKEFLAGS=
|
||||||
|
|
||||||
if test -n "$SYSTEM_COLLECTIONURI" || test -n "$SYSTEM_TASKDEFINITIONSURI"
|
if test true = "$GITHUB_ACTIONS"
|
||||||
then
|
|
||||||
CI_TYPE=azure-pipelines
|
|
||||||
# We are running in Azure Pipelines
|
|
||||||
CI_BRANCH="$BUILD_SOURCEBRANCH"
|
|
||||||
CI_COMMIT="$BUILD_SOURCEVERSION"
|
|
||||||
CI_JOB_ID="$BUILD_BUILDID"
|
|
||||||
CI_JOB_NUMBER="$BUILD_BUILDNUMBER"
|
|
||||||
CI_OS_NAME="$(echo "$AGENT_OS" | tr A-Z a-z)"
|
|
||||||
test darwin != "$CI_OS_NAME" || CI_OS_NAME=osx
|
|
||||||
CI_REPO_SLUG="$(expr "$BUILD_REPOSITORY_URI" : '.*/\([^/]*/[^/]*\)$')"
|
|
||||||
CC="${CC:-gcc}"
|
|
||||||
|
|
||||||
# use a subdirectory of the cache dir (because the file share is shared
|
|
||||||
# among *all* phases)
|
|
||||||
cache_dir="$HOME/test-cache/$SYSTEM_PHASENAME"
|
|
||||||
|
|
||||||
GIT_TEST_OPTS="--write-junit-xml"
|
|
||||||
JOBS=10
|
|
||||||
elif test true = "$GITHUB_ACTIONS"
|
|
||||||
then
|
then
|
||||||
CI_TYPE=github-actions
|
CI_TYPE=github-actions
|
||||||
CI_BRANCH="$GITHUB_REF"
|
CI_BRANCH="$GITHUB_REF"
|
||||||
|
@ -39,11 +39,6 @@ do
|
|||||||
test_name="${test_name##*/}"
|
test_name="${test_name##*/}"
|
||||||
trash_dir="trash directory.$test_name"
|
trash_dir="trash directory.$test_name"
|
||||||
case "$CI_TYPE" in
|
case "$CI_TYPE" in
|
||||||
azure-pipelines)
|
|
||||||
mkdir -p failed-test-artifacts
|
|
||||||
mv "$trash_dir" failed-test-artifacts
|
|
||||||
continue
|
|
||||||
;;
|
|
||||||
github-actions)
|
github-actions)
|
||||||
mkdir -p failed-test-artifacts
|
mkdir -p failed-test-artifacts
|
||||||
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:t}/failed-test-artifacts" >>$GITHUB_ENV
|
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:t}/failed-test-artifacts" >>$GITHUB_ENV
|
||||||
|
Reference in New Issue
Block a user