Skip to content

Commit 69e1971

Browse files
committed
Travis: Work on coverage
1 parent 365a98e commit 69e1971

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ addons:
2424
- g++-5
2525
- gcc-5
2626
- gfortran-5
27+
- lcov
2728
cache:
2829
directories:
2930
- $HOME/spack
@@ -36,10 +37,13 @@ install:
3637
- if [ "$TRAVIS_OS_NAME" = osx ]; then
3738
brew update;
3839
brew install gcc@5;
40+
brew install lcov;
3941
export CC=gcc-5;
4042
export CXX=g++-5;
4143
export FC=gfortran;
4244
fi
45+
- pip install --user codecov
46+
- gem install coveralls-lcov
4347
- pushd "$HOME"
4448
- curl -O https://curl.haxx.se/ca/cacert.pem && export CURL_CA_BUNDLE="$(pwd)/cacert.pem"
4549
# The git repo might have been created from the cache
@@ -71,11 +75,15 @@ script:
7175
- make -j2 install
7276
- popd
7377
after_success:
74-
- mkdir build-coveralls
78+
- mkdir build-coveralls && pushd build-coveralls
7579
# - export COVERALLS_SERVICE_NAME=travis-ci
7680
# - export COVERALLS_REPO_TOKEN=abc12345
7781
- cmake -DCMAKE_FIND_ROOT_PATH="$HOME/spack-view" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON ..
7882
- make -j2
7983
- make -j2 coveralls CTEST_OUTPUT_ON_FAILURE=1
84+
# - lcov --directory . --capture --output-file coverage.info
85+
# - lcov --remove coverage.info '/googletest-*' '/hdf5-*' '/usr/*' '/opt/*' '/Xcode.app/*' '*_wrap.cpp' --output-file coverage.info
86+
# - lcov --list coverage.info
8087
- codecov
8188
- coveralls-lcov coverage.info
89+
- popd

codecov.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
comment: false
2+
coverage:
3+
status:
4+
patch: false

0 commit comments

Comments
 (0)