Skip to content

Commit

Permalink
Merge pull request #231 from gjasny/cmake-coverage
Browse files Browse the repository at this point in the history
Publish coverage
  • Loading branch information
gjasny committed Nov 21, 2018
2 parents 1f28ea9 + 371f74e commit 57d3540
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ addons:
script:
- bazel build //...
- bazel test --test_output=all //core/... //pull/...
- bazel test --test_output=all //pull/tests/integration:scrape-test
# - bazel test --test_output=all //pull/tests/integration:scrape-test
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bazel test --test_output=all //pull/tests/integration:lint-test; fi
- bazel run -c opt //core/benchmarks

Expand All @@ -63,13 +63,14 @@ script:
- rm -rf 3rdparty/*

- pushd .
- mkdir _build_external_deps
- cd _build_external_deps
- cmake .. -DCMAKE_INSTALL_PREFIX=../_opt -DUSE_THIRDPARTY_LIBRARIES=OFF
- mkdir _build_coverage
- cd _build_coverage
- CFLAGS="--coverage" CXXFLAGS="--coverage" LDFLAGS="--coverage" cmake .. -DCMAKE_INSTALL_PREFIX=../_opt -DUSE_THIRDPARTY_LIBRARIES=OFF
- make -j 4
- ctest -V
- mkdir -p deploy
- make DESTDIR=`pwd`/deploy install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user cpp-coveralls && coveralls --root .. --build-root . -E ".*/3rdparty/.*" -E ".*/_.*" -E ".*/tests/.*" -E ".*/benchmarks/.*"; fi
- popd

# addons:
Expand Down

0 comments on commit 57d3540

Please sign in to comment.