| # NOTE: The COMPILER variable is unused. It simply makes the display on |
| # travis-ci.org more readable. |
| env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Coverage |
| env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Debug |
| env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Release |
| env: COMPILER=g++-4.8 STD=c++11 BUILD_TYPE=Debug |
| env: COMPILER=g++-4.8 STD=c++11 BUILD_TYPE=Release |
| env: COMPILER=clang++-3.6 STD=c++11 BUILD_TYPE=Debug |
| env: COMPILER=clang++-3.6 STD=c++11 BUILD_TYPE=Release |
| - source .travis-setup.sh |
| - mkdir build && cd build |
| - if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then |
| PATH=~/.local/bin:${PATH}; |
| pip install --user --upgrade pip; |
| pip install --user cpp-coveralls; |
| - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}" |
| - make CTEST_OUTPUT_ON_FAILURE=1 test |
| - if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then |
| coveralls --include src --include include --gcov-options '\-lp' --root .. --build-root .; |