File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ addons:
24
24
- g++-5
25
25
- gcc-5
26
26
- gfortran-5
27
+ - lcov
27
28
cache :
28
29
directories :
29
30
- $HOME/spack
@@ -36,10 +37,13 @@ install:
36
37
- if [ "$TRAVIS_OS_NAME" = osx ]; then
37
38
brew update;
38
39
brew install gcc@5;
40
+ brew install lcov;
39
41
export CC=gcc-5;
40
42
export CXX=g++-5;
41
43
export FC=gfortran;
42
44
fi
45
+ - pip install --user codecov
46
+ - gem install coveralls-lcov
43
47
- pushd "$HOME"
44
48
- curl -O https://curl.haxx.se/ca/cacert.pem && export CURL_CA_BUNDLE="$(pwd)/cacert.pem"
45
49
# The git repo might have been created from the cache
@@ -71,11 +75,15 @@ script:
71
75
- make -j2 install
72
76
- popd
73
77
after_success :
74
- - mkdir build-coveralls
78
+ - mkdir build-coveralls && pushd build-coveralls
75
79
# - export COVERALLS_SERVICE_NAME=travis-ci
76
80
# - export COVERALLS_REPO_TOKEN=abc12345
77
81
- cmake -DCMAKE_FIND_ROOT_PATH="$HOME/spack-view" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON ..
78
82
- make -j2
79
83
- 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
80
87
- codecov
81
88
- coveralls-lcov coverage.info
89
+ - popd
Original file line number Diff line number Diff line change
1
+ comment : false
2
+ coverage :
3
+ status :
4
+ patch : false
You can’t perform that action at this time.
0 commit comments