-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (48 loc) · 1.19 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: cpp
compiler: gcc
os: linux
branches:
only:
- /.*/
notifications:
email: false
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
env:
global:
- CFLAGS="-Wall -Wextra -pedantic -Wconversion "
- CXXFLAGS="-Wall -Wextra -pedantic -Wconversion"
before_install:
- pip install --user cpp-coveralls
- eval "${MATRIX_EVAL}"
- which $CC
- which $CXX
- $CC --version
- $CXX --version
install:
- mkdir Build
- cd Build
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
- gem install coveralls-lcov
before_script:
- lcov --directory . --zerocounters
script:
- cmake .. -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Coverage
- make
- ctest -V
after_success:
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info 'googletest/*' '/usr/*' --output-file coverage.info
- lcov --list coverage.info
- coveralls-lcov coverage.info