WIP: coveralls.io

This commit is contained in:
Michele Caini 2017-06-15 15:42:57 +02:00
parent 5f7a913974
commit acc968a8a3

View File

@ -31,6 +31,20 @@ matrix:
osx_image: xcode8 osx_image: xcode8
compiler: clang compiler: clang
env: COMPILER=clang++ env: COMPILER=clang++
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6']
env:
- COMPILER=g++-6
- CXXFLAGS="-O0 --coverage"
before_script:
- pip install --user cpp-coveralls
after_success:
- coveralls --gcov gcov-6 --gcov-options '\-lp' --root ${TRAVIS_BUILD_DIR} --build-root ${TRAVIS_BUILD_DIR}/build --extension cpp --extension hpp --exclude deps --include src
notifications: notifications:
email: email:
@ -38,15 +52,15 @@ notifications:
on_failure: always on_failure: always
install: install:
- echo ${PATH} - echo ${PATH}
- ./travis.sh - ./travis.sh
- cmake --version - cmake --version
- export CXX=${COMPILER} - export CXX=${COMPILER}
- echo ${CXX} - echo ${CXX}
- ${CXX} --version - ${CXX} --version
- ${CXX} -v - ${CXX} -v
script: script:
- mkdir -p build && cd build - mkdir -p build && cd build
- cmake .. && make -j4 - cmake .. && make -j4
- CTEST_OUTPUT_ON_FAILURE=1 make test - CTEST_OUTPUT_ON_FAILURE=1 make test