File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ matrix:
4242 - env : jobname=Linux32
4343 os : linux
4444 compiler :
45+ addons :
4546 services :
4647 - docker
4748 before_install :
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ skip_branch_tip_with_tag () {
2222}
2323
2424# Set 'exit on error' for all CI scripts to let the caller know that
25- # something went wrong
25+ # something went wrong.
26+ # Set tracing executed commands, primarily setting environment variables
27+ # and installing dependencies.
2628set -ex
2729
2830skip_branch_tip_with_tag
Original file line number Diff line number Diff line change 55
66. ${0%/* } /lib-travisci.sh
77
8+ # Tracing executed commands would produce too much noise in the loop below.
9+ set +x
10+
11+ if ! ls t/test-results/* .exit > /dev/null 2> /dev/null
12+ then
13+ echo " Build job failed before the tests could have been run"
14+ exit
15+ fi
16+
817for TEST_EXIT in t/test-results/* .exit
918do
1019 if [ " $( cat " $TEST_EXIT " ) " != " 0" ]
Original file line number Diff line number Diff line change 66# run-linux32-build.sh [host-user-id]
77#
88
9+ set -x
10+
911# Update packages to the latest available versions
1012linux32 --32bit i386 sh -c '
1113 apt update >/dev/null &&
@@ -25,6 +27,7 @@ test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER) &&
2527# Build and test
2628linux32 --32bit i386 su -m -l $CI_USER -c '
2729 cd /usr/src/git &&
30+ ln -s /tmp/travis-cache/.prove t/.prove &&
2831 make --jobs=2 &&
2932 make --quiet test
3033'
Original file line number Diff line number Diff line change @@ -19,5 +19,6 @@ docker run \
1919 --env GIT_TEST_OPTS \
2020 --env GIT_TEST_CLONE_2GB \
2121 --volume " ${PWD} :/usr/src/git" \
22+ --volume " ${HOME} /travis-cache:/tmp/travis-cache" \
2223 daald/ubuntu32:xenial \
2324 /usr/src/git/ci/run-linux32-build.sh $( id -u $USER )
Original file line number Diff line number Diff line change 6969
7070echo " Visual Studio Team Services Build #${BUILD_ID} "
7171
72+ # Tracing execued commands would produce too much noise in the waiting
73+ # loop below.
74+ set +x
75+
7276# Wait until build job finished
7377STATUS=
7478RESULT=
9094# Print log
9195echo " "
9296echo " "
97+ set -x
9398gfwci " action=log&buildId=$BUILD_ID " | cut -c 30-
9499
95100# Set exit code for TravisCI
You can’t perform that action at this time.
0 commit comments