Skip to content

Commit 4a6e4b9

Browse files
avargitster
authored andcommitted
CI: remove Travis CI support
Remove support for running the CI in travis. The last builds in it are from 5 months ago[1] (as of 2021-11-19), and our documentation has referred to GitHub CI instead since f003a91 (SubmittingPatches: replace discussion of Travis with GitHub Actions, 2021-07-22). We'll now run the "t9810 t9816" and tests on OSX. We didn't before, as we'd carried the Travis exclusion of them forward from 522354d (Add Travis CI support, 2015-11-27). Let's hope whatever issue there was with them was either Travis specific, or fixed since then (I'm not sure). The "apt-add-repository" invocation (which we were doing in GitHub CI) isn't needed, it was another Travis-only case that was carried forward into more general code. See 0f0c511 (travis-ci: install packages in 'ci/install-dependencies.sh', 2018-11-01). Remove the "linux-gcc-4.8" job added in fb9d743 (travis-ci: build with GCC 4.8 as well, 2019-07-18), it only ran in Travis CI. 1. https://travis-ci.org/github/git/git/builds Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cd3e606 commit 4a6e4b9

File tree

7 files changed

+7
-118
lines changed

7 files changed

+7
-118
lines changed

.travis.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

ci/install-dependencies.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev
1313

1414
case "$jobname" in
1515
linux-clang|linux-gcc|linux-leaks)
16-
sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
1716
sudo apt-get -q update
1817
sudo apt-get -q -y install language-pack-is libsvn-perl apache2 \
1918
$UBUNTU_COMMON_PKGS
@@ -77,7 +76,7 @@ Documentation)
7776
test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
7877
sudo gem install --version 1.5.8 asciidoctor
7978
;;
80-
linux-gcc-default|linux-gcc-4.8)
79+
linux-gcc-default)
8180
sudo apt-get -q update
8281
sudo apt-get -q -y install $UBUNTU_COMMON_PKGS
8382
;;

ci/lib.sh

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ save_good_tree () {
3434
# successfully before (e.g. because the branch got rebased, changing only
3535
# the commit messages).
3636
skip_good_tree () {
37-
if test "$TRAVIS_DEBUG_MODE" = true || test true = "$GITHUB_ACTIONS"
37+
if test true = "$GITHUB_ACTIONS"
3838
then
3939
return
4040
fi
@@ -60,7 +60,7 @@ skip_good_tree () {
6060
cat <<-EOF
6161
$(tput setaf 2)Skipping build job for commit $CI_COMMIT.$(tput sgr0)
6262
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
6464
To force a re-build delete the branch's cache and then hit 'Restart job'.
6565
EOF
6666
fi
@@ -91,29 +91,7 @@ export MAKEFLAGS=
9191
# and installing dependencies.
9292
set -ex
9393

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"
11795
then
11896
CI_TYPE=azure-pipelines
11997
# We are running in Azure Pipelines
@@ -130,10 +108,6 @@ then
130108
# among *all* phases)
131109
cache_dir="$HOME/test-cache/$SYSTEM_PHASENAME"
132110

133-
url_for_job_id () {
134-
echo "$SYSTEM_TASKDEFINITIONSURI$SYSTEM_TEAMPROJECT/_build/results?buildId=$1"
135-
}
136-
137111
export GIT_PROVE_OPTS="--timer --jobs 10 --state=failed,slow,save"
138112
export GIT_TEST_OPTS="--verbose-log -x --write-junit-xml"
139113
MAKEFLAGS="$MAKEFLAGS --jobs=10"
@@ -214,11 +188,6 @@ osx-clang|osx-gcc)
214188
else
215189
MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=$(which python2)"
216190
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"
222191
;;
223192
linux-gcc-default)
224193
;;

ci/print-test-failures.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ do
3939
test_name="${test_name##*/}"
4040
trash_dir="trash directory.$test_name"
4141
case "$CI_TYPE" in
42-
travis)
43-
;;
4442
azure-pipelines)
4543
mkdir -p failed-test-artifacts
4644
mv "$trash_dir" failed-test-artifacts
@@ -88,11 +86,3 @@ do
8886
fi
8987
fi
9088
done
91-
92-
if [ $combined_trash_size -gt 0 ]
93-
then
94-
echo "------------------------------------------------------------------------"
95-
echo "Trash directories embedded in this log can be extracted by running:"
96-
echo
97-
echo " curl https://api.travis-ci.org/v3/job/$TRAVIS_JOB_ID/log.txt |./ci/util/extract-trash-dirs.sh"
98-
fi

ci/run-build-and-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ linux-clang)
4141
export GIT_TEST_DEFAULT_HASH=sha256
4242
make test
4343
;;
44-
linux-gcc-4.8|pedantic)
44+
pedantic)
4545
# Don't run the tests; we only care about whether Git can be
46-
# built with GCC 4.8 or with pedantic
46+
# built.
4747
;;
4848
*)
4949
make test

ci/run-docker-build.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ else
4747
else
4848
useradd -u $HOST_UID $CI_USER
4949
fi
50-
51-
# Due to a bug the test suite was run as root in the past, so
52-
# a prove state file created back then is only accessible by
53-
# root. Now that bug is fixed, the test suite is run as a
54-
# regular user, but the prove state file coming from Travis
55-
# CI's cache might still be owned by root.
56-
# Make sure that this user has rights to any cached files,
57-
# including an existing prove state file.
58-
test -n "$cache_dir" && chown -R $HOST_UID:$HOST_UID "$cache_dir"
5950
fi
6051

6152
# Build and test

ci/run-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ docker pull "$CI_CONTAINER"
2525
# root@container:/# export jobname=<jobname>
2626
# root@container:/# /usr/src/git/ci/run-docker-build.sh <host-user-id>
2727

28-
container_cache_dir=/tmp/travis-cache
28+
container_cache_dir=/tmp/container-cache
2929

3030
docker run \
3131
--interactive \

0 commit comments

Comments
 (0)