2015-10-26 16:47:36 -04:00
|
|
|
language: cpp
|
2017-03-21 23:12:04 -04:00
|
|
|
sudo: false
|
2016-06-11 15:29:15 -04:00
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2015-11-20 21:30:32 -05:00
|
|
|
|
2017-03-22 21:41:00 -04:00
|
|
|
env:
|
|
|
|
- COVERAGE=ON STATIC=ON SAMPLES=OFF BENCHMARKS=OFF BUILD_TYPE=Debug
|
|
|
|
- COVERAGE=OFF STATIC=ON SAMPLES=ON BENCHMARKS=OFF BUILD_TYPE=Debug
|
|
|
|
- COVERAGE=OFF STATIC=OFF SAMPLES=ON BENCHMARKS=OFF BUILD_TYPE=Debug
|
|
|
|
- COVERAGE=OFF STATIC=ON SAMPLES=ON BENCHMARKS=ON BUILD_TYPE=Release
|
|
|
|
- COVERAGE=OFF STATIC=OFF SAMPLES=ON BENCHMARKS=ON BUILD_TYPE=Release
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-04-11 17:52:57 -04:00
|
|
|
- g++-6 lcov
|
2015-11-20 21:30:32 -05:00
|
|
|
|
2017-03-21 20:25:52 -04:00
|
|
|
install:
|
2017-03-22 00:29:39 -04:00
|
|
|
- export CC=gcc-6
|
|
|
|
- export CXX=g++-6
|
2017-03-21 20:25:52 -04:00
|
|
|
- gem install coveralls-lcov
|
|
|
|
|
2017-03-21 21:07:21 -04:00
|
|
|
script:
|
2017-03-21 20:25:52 -04:00
|
|
|
- mkdir build
|
2017-03-21 21:20:08 -04:00
|
|
|
- cd build
|
2017-03-22 21:41:00 -04:00
|
|
|
- cmake -D STATIC=$STATIC -D BENCHMARKS=$BENCHMARKS -D SAMPLES=$SAMPLES -D COVERAGE=$COVERAGE -D CMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
|
|
|
- cmake --build .
|
2017-03-22 00:21:31 -04:00
|
|
|
- ./tests/xlnt.test
|
2017-03-21 20:25:52 -04:00
|
|
|
|
2017-03-21 20:28:10 -04:00
|
|
|
after_success:
|
2017-03-22 21:41:00 -04:00
|
|
|
- |
|
|
|
|
if [[ "${COVERAGE}" == "ON" ]]; then
|
2017-03-23 20:08:21 -04:00
|
|
|
lcov --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info --base-directory ../source --no-external --gcov-tool /usr/bin/gcov-6
|
2017-04-20 14:57:25 -04:00
|
|
|
lcov --output-file coverage.info --remove coverage.info source/detail/serialization/miniz.cpp
|
2017-04-20 00:31:29 -04:00
|
|
|
i=$(dirname $(pwd))
|
|
|
|
sed -i "s|$i/||" coverage.info
|
2017-04-20 00:56:18 -04:00
|
|
|
cd ..
|
|
|
|
coveralls-lcov build/coverage.info
|
2017-03-22 21:41:00 -04:00
|
|
|
fi
|