xlnt/.travis.yml

52 lines
1.6 KiB
YAML
Raw Normal View History

# from: https://github.com/nlohmann/json/blob/master/.travis.yml
2015-10-27 04:47:36 +08:00
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'valgrind', 'python-pip', 'python-yaml']
before_script:
- pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
env: COMPILER=g++-4.9
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5', 'valgrind']
env: COMPILER=g++-5
- os: linux
compiler: clang
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
packages: ['clang-3.6', 'valgrind']
env: COMPILER=clang++-3.6
script:
2015-11-21 12:59:37 +08:00
- mkdir build && cd build
2015-11-21 12:55:03 +08:00
- cmake -G "Unix Makefiles" -D SHARED=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER ../cmake
2015-11-21 12:40:54 +08:00
- make
2015-11-21 11:28:56 +08:00
- ../bin/xlnt.test
after_success:
2015-11-21 13:43:32 +08:00
- if [ "$COMPILER" = "g++-4.9" ]; then rm -rf ./* ; fi
2015-11-21 23:57:45 +08:00
- if [ "$COMPILER" = "g++-4.9" ]; then cmake -G "Unix Makefiles" -D DEBUG=1 -D COVERAGE=1 -D SHARED=0 -D STATIC=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER ../cmake ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then make VERBOSE=1 ; fi
2015-11-21 13:43:32 +08:00
- if [ "$COMPILER" = "g++-4.9" ]; then cd .. && ./bin/xlnt.test ; fi
2015-11-21 13:49:49 +08:00
- if [ "$COMPILER" = "g++-4.9" ]; then coveralls --exclude bin --exclude build --exclude cmake --exclude docs --exclude include --exclude lib --exclude samples --include source --exclude tests --exclude third-party --gcov-options '\-lp' --gcov 'gcov-4.9' ; fi
2015-10-27 04:47:36 +08:00
notifications:
email: false
2015-10-27 04:02:28 +08:00