2015-11-21 10:30:32 +08:00
|
|
|
# from: https://github.com/nlohmann/json/blob/master/.travis.yml
|
|
|
|
|
2015-10-27 04:47:36 +08:00
|
|
|
language: cpp
|
2015-11-21 10:30:32 +08:00
|
|
|
|
2016-06-12 03:29:15 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2015-11-21 10:30:32 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-12 03:29:15 +08:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-03-22 08:35:50 +08:00
|
|
|
- g++-6 zlib1g libcrypto++9 libcrypto++9-dbg libcrypto++-dev cxxtest lcov
|
2016-06-12 03:29:15 +08:00
|
|
|
env:
|
2017-01-03 03:03:48 +08:00
|
|
|
- COMPILER=g++-6
|
2017-03-22 08:25:52 +08:00
|
|
|
- COVERAGE=ON
|
2017-01-03 02:57:56 +08:00
|
|
|
- STATIC=ON
|
2017-03-22 09:25:38 +08:00
|
|
|
- SAMPLES=OFF
|
|
|
|
- BENCHMARKS=OFF
|
2015-11-21 10:30:32 +08:00
|
|
|
|
2017-03-22 08:25:52 +08:00
|
|
|
install:
|
2017-03-22 09:57:48 +08:00
|
|
|
- gcov --version
|
|
|
|
- ls -al /usr/bin/gcov*
|
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
|
|
|
|
- cmake -D STATIC=$STATIC -D BENCHMARKS=$BENCHMARKS -D SAMPLES=$SAMPLES -D COVERAGE=$COVERAGE -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_BUILD_TYPE=Debug ..
|
|
|
|
- cmake --build .
|
|
|
|
- ./tests/xlnt.test
|
2017-03-22 08:25:52 +08:00
|
|
|
|
2017-03-22 08:28:10 +08:00
|
|
|
after_success:
|
2017-03-22 09:57:48 +08:00
|
|
|
- ls source/CMakeFiles/xlnt.dir/cell
|
2017-03-22 09:41:57 +08:00
|
|
|
- lcov --compat-libtool --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info
|
2017-03-22 08:25:52 +08:00
|
|
|
- coveralls-lcov coverage.info
|