Made cram tests run on travis

This commit is contained in:
Snaipe 2016-01-14 12:25:46 +01:00
parent 1a3cb4e2b1
commit 6fff06a2ee
2 changed files with 3 additions and 2 deletions

View file

@ -90,6 +90,7 @@ before_install:
brew unlink cmake
brew install llvm cmake
fi
- pip install cram
- export CXX=${CC/gcc/g++}; export CXX=${CXX/clang/clang++}
- $CC --version
- $CXX --version

View file

@ -43,9 +43,9 @@ add_custom_target(cram_tests ${CMAKE_COMMAND} -E env
"CRITERION_NO_EARLY_EXIT=1" # for coverage
"CRITERION_JOBS=1" # for output ordering
"CRITERION_DISABLE_TIME_MEASUREMENTS=1" # do not compare timings
cram -i ${CMAKE_CURRENT_SOURCE_DIR})
cram -v ${CMAKE_CURRENT_SOURCE_DIR})
add_dependencies(cram_tests criterion_samples)
add_test(cram_tests cram_tests)
add_test(cram_tests make cram_tests)
endif ()