Skip to content

Commit

Permalink
try to fix coveralls error
Browse files Browse the repository at this point in the history
  • Loading branch information
agauniyal committed Mar 23, 2016
1 parent 33db2ad commit 0d767e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,15 @@ install:

before_script:
- export CXX=$COMPILER

- export COVERALLS_SERVICE_NAME=travis-ci
- export COVERALLS_REPO_TOKEN=abc12345

- git submodule update --init
- mkdir build
- cd build
- cmake -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug ..

script:
- cmake --build .
- ./bin/vTest
- ./bin/runTest

after_script:
- cmake --build . --target coveralls
Expand Down
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ else()
endif()


option(COVERALLS "Turn on coveralls support" OFF)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${PROJECT_SOURCE_DIR}/coveralls-cmake/cmake)

Expand All @@ -24,18 +22,19 @@ endif()


if (COVERALLS)
set(COVERAGE_SRCS ${PROJECT_SOURCE_DIR}/include/rang.hpp)

set(COVERAGE_SRCS ${PROJECT_SOURCE_DIR}/include/rang.hpp ${PROJECT_SOURCE_DIR}/test/test.cpp)
coveralls_setup(
"${COVERAGE_SRCS}"
ON
"${PROJECT_SOURCE_DIR}/coveralls-cmake/cmake")
ON)
endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
enable_testing()

include_directories(include)
set(CATCH_HEADER_PATH ${PROJECT_SOURCE_DIR}/test/catch.hpp)

add_executable(vTest ${PROJECT_SOURCE_DIR}/test/visualTest.cpp)
add_executable(runTest ${PROJECT_SOURCE_DIR}/test/test.cpp ${CATCH_HEADER_PATH})

add_test(RTEST ${CMAKE_BINARY_DIR}/bin/runTest)

0 comments on commit 0d767e3

Please sign in to comment.