Skip to content

Commit

Permalink
Add codecov coverage (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
codejaeger committed Jan 4, 2021
1 parent 2b1e466 commit e1c69d1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/coverage.sh
@@ -0,0 +1,7 @@
#! /bin/bash
set -e
lcov --directory bin.v2 --capture --no-external --directory $(pwd) --output-file coverage.info > /dev/null 2>&1
lcov --extract coverage.info $(pwd)'/boost/gil/*' --output-file coverage.info > /dev/null
lcov --list coverage.info
cd libs/gil
bash <(curl -s https://codecov.io/bash) -f ../../coverage.info || echo "Codecov did not collect coverage reports"
16 changes: 16 additions & 0 deletions .travis.yml
Expand Up @@ -20,6 +20,22 @@ matrix:
exclude:
- env: BOGUS_JOB=true
include:
- os: linux
env: COMPILER=g++-6 VARIANT=debug TOOLSET=gcc CXXSTD=11 B2_OPTIONS="coverage=on"
addons:
apt:
packages:
- g++-6
- libpng-dev
- libjpeg-dev
- libtiff5-dev
- libraw-dev
- lcov
sources:
- ubuntu-toolchain-r-test
after_success:
- bash libs/gil/.ci/coverage.sh

- os: linux
env: COMPILER=g++-5 VARIANT=debug TOOLSET=gcc CXXSTD=11 TEST_HEADERS=1
addons:
Expand Down

0 comments on commit e1c69d1

Please sign in to comment.