34
# successfully before (e.g. because the branch got rebased, changing only
35
# the commit messages).
36
skip_good_tree () {
37
- if test "$TRAVIS_DEBUG_MODE" = true || test true = "$GITHUB_ACTIONS"
37
+ if test true = "$GITHUB_ACTIONS"
38
then
39
return
40
fi
60
cat <<-EOF
61
$(tput setaf 2)Skipping build job for commit $CI_COMMIT.$(tput sgr0)
62
This commit's tree has already been built and tested successfully in build job $prev_good_job_number for commit $prev_good_commit.
63
- The log of that build job is available at $(url_for_job_id $prev_good_job_id)
63
+ The log of that build job is available at $SYSTEM_TASKDEFINITIONSURI$SYSTEM_TEAMPROJECT/_build/results?buildId=$prev_good_job_id
64
To force a re-build delete the branch's cache and then hit 'Restart job'.
65
EOF
66
fi
91
# and installing dependencies.
92
set -ex
93
94
-if test true = "$TRAVIS"
95
-then
96
- CI_TYPE=travis
97
- # When building a PR, TRAVIS_BRANCH refers to the *target* branch. Not
98
- # what we want here. We want the source branch instead.
99
- CI_BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
100
- CI_COMMIT="$TRAVIS_COMMIT"
101
- CI_JOB_ID="$TRAVIS_JOB_ID"
102
- CI_JOB_NUMBER="$TRAVIS_JOB_NUMBER"
103
- CI_OS_NAME="$TRAVIS_OS_NAME"
104
- CI_REPO_SLUG="$TRAVIS_REPO_SLUG"
105
-
106
- cache_dir="$HOME/travis-cache"
107
-
108
- url_for_job_id () {
109
- echo "https://travis-ci.org/$CI_REPO_SLUG/jobs/$1"
110
- }
111
-
112
- BREW_INSTALL_PACKAGES="git-lfs gettext"
113
- export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
114
- export GIT_TEST_OPTS="--verbose-log -x --immediate"
115
- MAKEFLAGS="$MAKEFLAGS --jobs=2"
116
-elif test -n "$SYSTEM_COLLECTIONURI" || test -n "$SYSTEM_TASKDEFINITIONSURI"
94
+if test -n "$SYSTEM_COLLECTIONURI" || test -n "$SYSTEM_TASKDEFINITIONSURI"
95
then
96
CI_TYPE=azure-pipelines
97
# We are running in Azure Pipelines
108
# among *all* phases)
109
cache_dir="$HOME/test-cache/$SYSTEM_PHASENAME"
110
133
- url_for_job_id () {
134
- echo "$SYSTEM_TASKDEFINITIONSURI$SYSTEM_TEAMPROJECT/_build/results?buildId=$1"
135
- }
136
-
111
export GIT_PROVE_OPTS="--timer --jobs 10 --state=failed,slow,save"
112
export GIT_TEST_OPTS="--verbose-log -x --write-junit-xml"
113
MAKEFLAGS="$MAKEFLAGS --jobs=10"
188
else
189
MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=$(which python2)"
190
fi
217
-
218
- # t9810 occasionally fails on Travis CI OS X
219
- # t9816 occasionally fails with "TAP out of sequence errors" on
220
- # Travis CI OS X
221
- export GIT_SKIP_TESTS="t9810 t9816"
191
;;
192
linux-gcc-default)
193
;;