File tree Expand file tree Collapse file tree 6 files changed +22
-1
lines changed Expand file tree Collapse file tree 6 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ matrix:
42
42
- env : jobname=Linux32
43
43
os : linux
44
44
compiler :
45
+ addons :
45
46
services :
46
47
- docker
47
48
before_install :
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ skip_branch_tip_with_tag () {
22
22
}
23
23
24
24
# 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.
26
28
set -ex
27
29
28
30
skip_branch_tip_with_tag
Original file line number Diff line number Diff line change 5
5
6
6
. ${0%/* } /lib-travisci.sh
7
7
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
+
8
17
for TEST_EXIT in t/test-results/* .exit
9
18
do
10
19
if [ " $( cat " $TEST_EXIT " ) " != " 0" ]
Original file line number Diff line number Diff line change 6
6
# run-linux32-build.sh [host-user-id]
7
7
#
8
8
9
+ set -x
10
+
9
11
# Update packages to the latest available versions
10
12
linux32 --32bit i386 sh -c '
11
13
apt update >/dev/null &&
@@ -25,6 +27,7 @@ test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER) &&
25
27
# Build and test
26
28
linux32 --32bit i386 su -m -l $CI_USER -c '
27
29
cd /usr/src/git &&
30
+ ln -s /tmp/travis-cache/.prove t/.prove &&
28
31
make --jobs=2 &&
29
32
make --quiet test
30
33
'
Original file line number Diff line number Diff line change @@ -19,5 +19,6 @@ docker run \
19
19
--env GIT_TEST_OPTS \
20
20
--env GIT_TEST_CLONE_2GB \
21
21
--volume " ${PWD} :/usr/src/git" \
22
+ --volume " ${HOME} /travis-cache:/tmp/travis-cache" \
22
23
daald/ubuntu32:xenial \
23
24
/usr/src/git/ci/run-linux32-build.sh $( id -u $USER )
Original file line number Diff line number Diff line change 69
69
70
70
echo " Visual Studio Team Services Build #${BUILD_ID} "
71
71
72
+ # Tracing execued commands would produce too much noise in the waiting
73
+ # loop below.
74
+ set +x
75
+
72
76
# Wait until build job finished
73
77
STATUS=
74
78
RESULT=
90
94
# Print log
91
95
echo " "
92
96
echo " "
97
+ set -x
93
98
gfwci " action=log&buildId=$BUILD_ID " | cut -c 30-
94
99
95
100
# Set exit code for TravisCI
You can’t perform that action at this time.
0 commit comments