-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (39 loc) · 944 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
37
38
39
40
41
42
43
44
# We need a decent ubuntu dist
sudo: required
dist: trusty
# Add token
service_name: travis-pro
repo_token: EAMa6yRqU8kylm8Mj5MQWQfr41zQkFskS
# Modern cpp settings from
# http://genbattle.bitbucket.org/blog/2016/01/17/c++-travis-ci/
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-5
- cmake
- cmake-data
env: COMPILER=g++-5
before_install:
- pip install --user cpp-coveralls
install:
- sudo apt-get install -y -qq lcov
script:
- export CXX=$COMPILER;
- mkdir build
- cd build
- cmake -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ../
- make
- make code_coverage
- test/cpp-test
after_success:
- coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*"
notifications:
email: false