Skip to content

Commit

Permalink
Travis build set to debug to use coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed May 5, 2016
1 parent bdcb21a commit 34b6389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ addons:
script:
# initial run with options
- cd test/unit_test
- cmake ${CMAKE_OPTIONS_GLOBAL} .
- cmake ${CMAKE_OPTIONS_GLOBAL} . -DCMAKE_BUILD_TYPE=Debug
- make -j2
- make coveralls
- ctest --output-on-failure
Expand Down
4 changes: 2 additions & 2 deletions test/unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8)

project(mathgp-test)

enable_testing()

# setup coverage stuff only when COVERALLS_SERVICE_NAME is set (usually on travis CI)
if(DEFINED ENV{COVERALLS_SERVICE_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/coveralls-cmake)
Expand All @@ -13,8 +15,6 @@ if(DEFINED ENV{COVERALLS_SERVICE_NAME})
coveralls_setup("${mathgp_files}" ON ${CMAKE_CURRENT_SOURCE_DIR}/coveralls-cmake)
endif()

enable_testing()

file(GLOB tests ${CMAKE_CURRENT_SOURCE_DIR}/*.*)
file(GLOB doctest ${CMAKE_CURRENT_SOURCE_DIR}/doctest/*.*)

Expand Down

0 comments on commit 34b6389

Please sign in to comment.