diff --git a/.ci/coverage.sh b/.ci/coverage.sh new file mode 100644 index 0000000000..42ff3e703f --- /dev/null +++ b/.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" diff --git a/.travis.yml b/.travis.yml index 3e46e5a11b..5c18d49687 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: