-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
44 lines (40 loc) · 1.03 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
# We need a decent ubuntu distro
sudo: required
dist: Bionic
# 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
- sudo apt-get install -y libeigen3-dev
- sudo apt-get install libopencv-dev
- sudo add-apt-repository -y ppa:alfonsosanchezbeato/opencv-tracking
- sudo apt-get install libopencv-contrib-dev
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 .. --exclude app/main.cpp --exclude build/CMakeFiles/
notifications:
email: false