2015-10-27 04:47:36 +08:00
|
|
|
language: cpp
|
2017-03-22 11:12:04 +08:00
|
|
|
sudo: false
|
2016-06-12 03:29:15 +08:00
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2015-11-21 10:30:32 +08:00
|
|
|
|
2017-03-23 09:41:00 +08: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-12 05:52:57 +08:00
|
|
|
- g++-6 lcov
|
2015-11-21 10:30:32 +08:00
|
|
|
|
2017-03-22 08:25:52 +08:00
|
|
|
install:
|
2017-03-22 12:29:39 +08:00
|
|
|
- export CC=gcc-6
|
|
|
|
- export CXX=g++-6
|
2017-03-22 08:25:52 +08:00
|
|
|
- gem install coveralls-lcov
|
|
|
|
|
2017-03-22 09:07:21 +08:00
|
|
|
script:
|
2017-03-22 08:25:52 +08:00
|
|
|
- mkdir build
|
2017-03-22 09:20:08 +08:00
|
|
|
- cd build
|
2017-03-23 09:41:00 +08: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 12:21:31 +08:00
|
|
|
- ./tests/xlnt.test
|
2017-03-22 08:25:52 +08:00
|
|
|
|
2017-03-22 08:28:10 +08:00
|
|
|
after_success:
|
2017-03-23 09:41:00 +08:00
|
|
|
- |
|
|
|
|
if [[ "${COVERAGE}" == "ON" ]]; then
|
2017-03-24 08:08:21 +08:00
|
|
|
lcov --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info --base-directory ../source --no-external --gcov-tool /usr/bin/gcov-6
|
2017-03-23 09:41:00 +08:00
|
|
|
coveralls-lcov coverage.info
|
|
|
|
fi
|