File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 14
14
- ASAN=ON
15
15
- INTERNAL_SQLITE=ON
16
16
- VALGRIND=OFF
17
+ - TESTS=ON
17
18
18
19
# Build variants (should test a reasonable number of combination of CMake options)
19
20
jobs :
69
70
- dist : trusty
70
71
env :
71
72
- cc=gcc cxx=g++
73
+ - TESTS=OFF
72
74
73
75
# #########################################################################
74
76
# Clang on Linux
88
90
- dist : trusty
89
91
env :
90
92
- cc=clang cxx=clang++
93
+ - TESTS=OFF
91
94
92
95
# #########################################################################
93
96
# Clang on OSX
@@ -121,13 +124,13 @@ before_install:
121
124
before_script :
122
125
- mkdir build
123
126
- cd build
124
- - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSQLITECPP_INTERNAL_SQLITE=$INTERNAL_SQLITE -DSQLITECPP_USE_ASAN=$ASAN -DSQLITECPP_USE_GCOV=$GCOV -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
127
+ - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSQLITECPP_INTERNAL_SQLITE=$INTERNAL_SQLITE -DSQLITECPP_USE_ASAN=$ASAN -DSQLITECPP_USE_GCOV=$GCOV -DSQLITECPP_BUILD_EXAMPLES=$TESTS -DSQLITECPP_BUILD_TESTS=$TESTS ..
125
128
126
129
# build examples, and run tests (ie make & make test)
127
130
script :
128
131
- cmake --build .
129
132
- export ASAN_OPTIONS=verbosity=1:debug=1
130
- - ctest --verbose --output-on-failure
133
+ - if [[ "$TESTS" == "ON" ]]; then ctest --verbose --output-on-failure ; fi
131
134
- if [[ "$VALGRIND" == "ON" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_example1 ; fi
132
135
- if [[ "$VALGRIND" == "ON" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_tests ; fi
133
136
You can’t perform that action at this time.
0 commit comments