Skip to content

Commit

Permalink
Add coveralls support (#5)
Browse files Browse the repository at this point in the history
* Add coveralls support
  • Loading branch information
asweeney86 committed Dec 20, 2017
1 parent 9d5a6ed commit 5140d89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,32 @@ dist: trusty
sudo: required
group: edge

before_script:

script:
- mkdir build
- cd build
- cmake ..

script: make && make test
- cmake .. ${CMAKE_OPTIONS}
- make
- make test

matrix:
include:

- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['check', 'g++-4.9']
before_script:
- pip install --user cpp-coveralls
after_success:
- make coverage
- coveralls --build-root test --include src --gcov 'gcov-4.9' --gcov-options '\-lp'
env:
- COMPILER=g++-4.9
- CMAKE_OPTIONS=-DENABLE_COVERAGE=ON

# Linux / GCC
- os: linux
compiler: gcc
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,7 @@ if (NOT ${DISABLE_TESTS})
add_coverage(acf)
add_subdirectory(test)
coverage_evaluate()
add_custom_target(coverage
make && make test && make gcov && make lcov
)
endif()

0 comments on commit 5140d89

Please sign in to comment.