mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
42 lines
999 B
YAML
42 lines
999 B
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++-6 zlib1g libcrypto++9 libcrypto++9-dbg libcrypto++-dev cxxtest lcov
|
|
env:
|
|
- COMPILER=g++-6
|
|
- COVERAGE=ON
|
|
- STATIC=ON
|
|
- SAMPLES=OFF
|
|
- BENCHMARKS=OFF
|
|
|
|
install:
|
|
- gem install coveralls-lcov
|
|
|
|
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 .
|
|
- ./tests/xlnt.test
|
|
|
|
after_success:
|
|
- ls source/CMakeFiles/xlnt.dir/cell
|
|
- lcov --compat-libtool --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info --gcov-tool /usr/bin/gcov-6
|
|
- coveralls-lcov coverage.info
|