-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
37 lines (33 loc) · 842 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
35
36
dist: trusty
sudo: required
language:
- cpp
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
- lcov
notifications:
email: false
script:
- export CC=/usr/bin/gcc
- export CXX=/usr/bin/g++
- gcc -v && g++ -v && cmake --version
- mkdir build && cd build
- cmake -DCOV=true .. && make
- make unittest && ./unittest/unittest
- make example && ./example/example
after_success:
# Create coverage report.
- cd ./unittest/CMakeFiles/unittest.dir
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info
- lcov --list coverage.info
# Upload report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"