-
Notifications
You must be signed in to change notification settings - Fork 64
/
.travis.yml
34 lines (34 loc) · 932 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
os: linux
dist: trusty
language: cpp
addons:
apt:
update: true
packages: lcov python3 cppcheck
compiler:
- gcc
- clang
env:
- BUILD_TYPE=Debug
- BUILD_TYPE=RelWithDebInfo
- BUILD_TYPE=Debug COVERAGE=true CXXFLAGS="--coverage"
jobs:
exclude:
- compiler: clang
env: BUILD_TYPE=Debug COVERAGE=true CXXFLAGS="--coverage"
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS="-Werror $CXXFLAGS" -DBUILD_TESTING=True ..
- make
- make test ARGS="-VV"
after_script:
- sudo make install
- pkg-config --modversion console_bridge
- |
if [[ $COVERAGE == true ]]; then
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info */test/* --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
fi