xlnt/.travis.yml

52 lines
1.5 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 10:33:38 +08:00
- python configure --enable-tests
- make -C build CXX=$COMPILER CXXFLAGS="-lstdc++"
- ./bin/xlnt.test
- valgrind --error-exitcode=1 --leak-check=full ./xlnt.test
after_success:
- if [ "$COMPILER" = "g++-4.9" ]; then make -C build clean ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then touch include/xlnt/xlnt_config.hpp ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then make -C build xlnt.test CXXFLAGS="-fprofile-arcs -ftest-coverage -std=c++11 -lstdc++" CXX=$COMPILER ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then ./bin/xlnt.test ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then coveralls --include source/worksheet/test_worksheet.hpp --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