mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
48 lines
963 B
YAML
48 lines
963 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++-4.9
|
|
- python-pip
|
|
before_script:
|
|
- pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
|
|
env:
|
|
- COMPILER=g++-4.9
|
|
- COVERAGE=ON
|
|
|
|
- os: linux
|
|
compiler: gcc
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-5
|
|
- valgrind
|
|
env:
|
|
- COMPILER=g++-5
|
|
- COVERAGE=OFF
|
|
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -D STATIC=ON -D SAMPLES=ON -D COVERAGE=$COVERAGE -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_BUILD_TYPE=Debug ..
|
|
- cmake --build .
|
|
- cd bin && ./xlnt.test
|
|
- find .
|