Skip to content

Commit 5875e8d

Browse files
committed
travis: exit on failure for anything related to building
1 parent 6d69fbc commit 5875e8d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

script/cibuild.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ export GITTEST_REMOTE_URL="git://localhost/test.git"
88

99
mkdir _build
1010
cd _build
11-
cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
12-
cmake --build . --target install
13-
ctest -V .
14-
ecode=$?
15-
16-
if [ $ecode -ne 0 ]; then
17-
exit $ecode
18-
fi
11+
cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS || exit $?
12+
cmake --build . --target install || exit $?
13+
ctest -V . || exit $?
1914

2015
# Now that we've tested the raw git protocol, let's set up ssh to we
2116
# can do the push tests over it

0 commit comments

Comments
 (0)