Skip to content

Commit 6c30a53

Browse files
mroethkesmlng
authored andcommitted
travis: do not skip build steps if previous steps fail
1 parent 72c3210 commit 6c30a53

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/travis.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/usr/bin/env bash
22

3-
set -e
4-
53
RED='\033[0;31m'
64
GREEN='\033[0;32m'
75
NC='\033[0m' # No Color
86

7+
BUILDSTEP_FAILED=0
8+
99
function run_command {
1010
eval $@
1111

1212
ret=$?
1313
if [ $ret != 0 ]; then
1414
colour=$RED
15+
BUILDSTEP_FAILED=1
1516
else
1617
colour=$GREEN
1718
fi
@@ -42,3 +43,5 @@ run_command make
4243
run_command make test
4344
run_command make gcov
4445
run_command scripts/check-exports.sh
46+
47+
exit $BUILDSTEP_FAILED

0 commit comments

Comments
 (0)