Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit ce24174

Browse files
committed
.travis: Allow to skip running the tests
1 parent 589064c commit ce24174

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ language: cpp
44

55
env:
66
matrix:
7-
- OS_TYPE=debian10 CMAKE_BUILD_TYPE=Release SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON
8-
- OS_TYPE=debian10 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON
7+
- OS_TYPE=debian10 CMAKE_BUILD_TYPE=Release SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON RUN_TESTS=ON
8+
- OS_TYPE=debian10 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON RUN_TESTS=ON
99
- OS_TYPE=debian10 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=OFF RUN_TESTS=OFF
10-
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON
11-
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=ON COVERALLS=ON STOCK_CPPZMQ=OFF BUILD_SHARED_LIBS=ON
12-
- OS_TYPE=debian7 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON
10+
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON RUN_TESTS=ON
11+
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=ON COVERALLS=ON STOCK_CPPZMQ=OFF BUILD_SHARED_LIBS=ON RUN_TESTS=ON
12+
- OS_TYPE=debian7 CMAKE_BUILD_TYPE=Debug SONAR_SCANNER=OFF COVERALLS=OFF STOCK_CPPZMQ=ON BUILD_SHARED_LIBS=ON RUN_TESTS=ON
1313

1414
notifications:
1515
email: false

.travis/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
if [ $RUN_TESTS = "OFF" ]
4+
then
5+
echo "Skipping tests as requested"
6+
exit 0
7+
fi
8+
39
TEST_COMMAND="exec ctest --output-on-failure"
410
if [ $COVERALLS = "ON" ]
511
then

0 commit comments

Comments
 (0)