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:
|
|
|
|
- g++-4.9
|
|
|
|
- python-pip
|
2015-11-21 10:30:32 +08:00
|
|
|
before_script:
|
|
|
|
- pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
|
2016-06-12 03:29:15 +08:00
|
|
|
env:
|
|
|
|
- COMPILER=g++-4.9
|
2016-11-01 08:48:43 +08:00
|
|
|
- COVERAGE=ON
|
2016-11-01 10:47:09 +08:00
|
|
|
- STATIC=ON
|
|
|
|
- SAMPLES=OFF
|
2015-11-21 10:30:32 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-12 03:29:15 +08:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-5
|
|
|
|
- valgrind
|
|
|
|
env:
|
|
|
|
- COMPILER=g++-5
|
2016-11-01 08:48:43 +08:00
|
|
|
- COVERAGE=OFF
|
2016-11-01 10:47:09 +08:00
|
|
|
- STATIC=OFF
|
|
|
|
- SAMPLES=ON
|
2015-11-21 10:30:32 +08:00
|
|
|
|
2015-10-27 03:57:37 +08:00
|
|
|
script:
|
2016-06-12 03:29:15 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-11-01 10:54:21 +08:00
|
|
|
- cmake -D STATIC=$STATIC -D SAMPLES=$SAMPLES -D COVERAGE=$COVERAGE -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_BUILD_TYPE=Debug ..
|
2016-11-01 08:48:43 +08:00
|
|
|
- cmake --build .
|
2016-10-26 08:21:58 +08:00
|
|
|
- cd bin && ./xlnt.test
|
2016-11-01 11:23:29 +08:00
|
|
|
- cd ..
|
|
|
|
- find source/CMakeFiles/xlnt.dir
|
2016-11-01 11:30:21 +08:00
|
|
|
- if [ "$COMPILER" = "g++4.9" ]; then coveralls --root source/CMakeFiles/xlnt.dir --verbose -x ".cpp" --gcov-options '\-p' ; fi
|