2015-04-03 18:43:42 +00:00
|
|
|
language: cpp
|
2014-11-12 09:32:00 +00:00
|
|
|
|
2015-04-03 18:43:42 +00:00
|
|
|
# NOTE: The COMPILER variable is unused. It simply makes the display on
|
|
|
|
# travis-ci.org more readable.
|
|
|
|
matrix:
|
|
|
|
include:
|
2015-05-12 15:17:38 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Coverage
|
2015-04-03 18:43:42 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Debug
|
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Release
|
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER=g++-4.8 STD=c++11 BUILD_TYPE=Debug
|
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER=g++-4.8 STD=c++11 BUILD_TYPE=Release
|
|
|
|
- compiler: clang
|
|
|
|
env: COMPILER=clang++-3.6 STD=c++11 BUILD_TYPE=Debug
|
|
|
|
- compiler: clang
|
|
|
|
env: COMPILER=clang++-3.6 STD=c++11 BUILD_TYPE=Release
|
2015-03-06 17:35:00 +00:00
|
|
|
|
2014-11-12 09:32:00 +00:00
|
|
|
before_script:
|
2015-04-03 18:43:42 +00:00
|
|
|
- source .travis-setup.sh
|
2014-11-12 09:32:00 +00:00
|
|
|
- mkdir build && cd build
|
|
|
|
|
2015-05-12 15:17:38 +00:00
|
|
|
install:
|
|
|
|
- if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
|
|
PATH=~/.local/bin:${PATH};
|
|
|
|
pip install --user --upgrade pip;
|
|
|
|
pip install --user cpp-coveralls;
|
|
|
|
fi
|
|
|
|
|
2014-11-12 09:32:00 +00:00
|
|
|
script:
|
2014-11-12 09:46:23 +00:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}"
|
2014-11-12 09:32:00 +00:00
|
|
|
- make
|
2015-03-09 18:40:08 +00:00
|
|
|
- make CTEST_OUTPUT_ON_FAILURE=1 test
|
2015-05-12 15:17:38 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
|
|
coveralls --include src --include include --gcov-options '\-lp' --root .. --build-root .;
|
|
|
|
fi
|