mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# from: https://github.com/nlohmann/json/blob/master/.travis.yml
|
|
|
|
language: cpp
|
|
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
compiler: gcc
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.9
|
|
- python-pip
|
|
before_script:
|
|
- pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
|
|
env:
|
|
- COMPILER=g++-4.9
|
|
- COVERAGE=ON
|
|
- STATIC=ON
|
|
- SAMPLES=OFF
|
|
- BENCHMARKS=OFF
|
|
|
|
- os: linux
|
|
compiler: gcc
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-5
|
|
- valgrind
|
|
env:
|
|
- COMPILER=g++-5
|
|
- COVERAGE=OFF
|
|
- STATIC=OFF
|
|
- SAMPLES=ON
|
|
- BENCHMARKS=ON
|
|
|
|
script:
|
|
- mkdir build
|
|
- 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 .
|
|
- cd bin && ./xlnt.test
|
|
- cd ..
|
|
- find source/CMakeFiles/xlnt.dir
|
|
- if [ "$COMPILER" = "g++4.9" ]; then coveralls --root source/CMakeFiles/xlnt.dir --verbose -x ".cpp" --gcov-options '\-p' ; fi
|