Skip to content

Commit da46a11

Browse files
authored
Make Travis fail if couldn't build at all (#1307)
1 parent 691c9d0 commit da46a11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,12 @@ before_script:
479479

480480
script:
481481
- if [[ "$TRAVIS_OS_NAME" == "linux" || "$TRAVIS_OS_NAME" == "osx" ]]; then
482-
cmake -DENABLE_TESTING=1 -DCMAKE_BUILD_TYPE=Debug .. ;
483-
make -j5 ;
482+
cmake -DENABLE_TESTING=1 -DCMAKE_BUILD_TYPE=Debug .. &&
483+
make -j5 &&
484484
ctest --output-on-failure ;
485485
fi
486486
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
487-
cmake -DENABLE_TESTING=0 -G "$MSVCNAME" .. ;
487+
cmake -DENABLE_TESTING=0 -G "$MSVCNAME" .. &&
488488
cmake --build . --target ALL_BUILD --config RelWithDebInfo --parallel ;
489489
fi
490490
#- ctest --output-on-failure

0 commit comments

Comments
 (0)