-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (33 loc) · 761 Bytes
/
Copy path.travis.yml
File metadata and controls
36 lines (33 loc) · 761 Bytes
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
notifications:
email: false
language:
- cpp
compiler:
- gcc
- clang
addons:
apt:
packages:
- lcov
- valgrind
script:
- mkdir Debug
- cd Debug
- cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j4
- ./benchmark 100 1.0 1e-3
- valgrind ./tests -s -d yes
- cd ../
- mkdir Release
- cd Release
- cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4
- ./benchmark 100 0.1 1e-10
- valgrind ./tests -s -d yes
- cd ../
after_success:
- cd Debug
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' '*/inc/Eigen3/*' '*/catch/*' '*/test/*' --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) -X gcov