-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (28 loc) · 978 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: cpp
sudo: false
os: osx
osx_image: xcode8
compiler: clang
env: COMPILER='clang++'
install:
- which cmake || brew install cmake
- which lcov || brew install lcov
before_script:
- export CXX=${COMPILER}
- cd ${TRAVIS_BUILD_DIR}
- cmake -H. -BBuild
- cd Build
script:
- make -j 2
- ctest -V -j 2
- make Wyatt_coverage
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
- lcov --remove coverage.info '/Applications/*' --output-file coverage.info # filter out system
- lcov --remove coverage.info '*/catch.hpp' --output-file coverage.info
- lcov --remove coverage.info '*/test/*' --output-file coverage.info
- lcov --list coverage.info #debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"