-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
58 lines (50 loc) · 1.15 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
56
57
58
language: cpp
sudo: required
dist: trusty
compiler:
- g++
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- cmake
- libgoogle-glog-dev
- libatlas-base-dev
- libeigen3-dev
- libsuitesparse-dev
- libgtest-dev
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
#branches:
# only:
# - master
before_script:
- wget http://ceres-solver.org/ceres-solver-1.13.0.tar.gz
- tar zxf ceres-solver-1.13.0.tar.gz
- cd ceres-solver-1.13.0
- mkdir build
- cd build
- cmake ..
- make -j8
- sudo make install
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- pip install --user cpp-coveralls
script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build
- cd build
- cmake .. -DUSE_OPENMP=1 -DCOVERAGE=1
- make -j2
- make tests
- make check
before_install:
- eval "${MATRIX_EVAL}"
after_success:
- coveralls --exclude ceres-solver-1.13.0 --exclude docs --exclude samples --exclude tests -E ".*CMakeFiles.*" -E ".*_hmi.cpp" --gcov-options '\-lp' --root ..