Skip to content

Commit 69614bb

Browse files
committed
Fix CMake tests in .travis.yml
1 parent 24abbdc commit 69614bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ matrix:
302302
env: CMAKE_TEST=1
303303
script:
304304
- mkdir __build__ && cd __build__
305-
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES=preprocessor ..
306-
- ctest --output-on-failure -R boost_preprocessor
305+
- cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=preprocessor ..
306+
- cmake --build . --target tests
307+
- ctest --output-on-failure
307308

308309
- os: linux
309310
env: CMAKE_SUBDIR_TEST=1
@@ -317,8 +318,9 @@ matrix:
317318
- os: linux
318319
env: CMAKE_INSTALL_TEST=1
319320
script:
321+
- pip install --user cmake
320322
- mkdir __build__ && cd __build__
321-
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES=preprocessor -DCMAKE_INSTALL_PREFIX=~/.local ..
323+
- cmake -DBOOST_INCLUDE_LIBRARIES=preprocessor -DCMAKE_INSTALL_PREFIX=~/.local ..
322324
- cmake --build . --target install
323325
- cd ../libs/preprocessor/test/cmake_install_test && mkdir __build__ && cd __build__
324326
- cmake -DCMAKE_INSTALL_PREFIX=~/.local ..

0 commit comments

Comments
 (0)