forked from RainerKuemmerle/g2o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (48 loc) · 916 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
sudo: required
dist: trusty
language: cpp
os:
- linux
- osx
env:
global:
- MAKEFLAGS="-j 2"
notifications:
email:
recipients:
on_success: change # default: change
on_failure: always # default: always
compiler:
- gcc
- clang
before_install:
- env | sort
install:
#- script/install-deps-linux.sh
- script/install-deps-${TRAVIS_OS_NAME}.sh
before_script:
- mkdir build
- cd build
- if [[ "$CC" == "gcc" && "$TRAVIS_OS_NAME" == "linux" ]]; then
export CC=gcc-8 ;
export CXX=g++-8 ;
fi
- cmake --version
- cmake -DBUILD_UNITTESTS=ON ..
- cat g2o/config.h
script:
- make
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
ctest --extra-verbose ;
fi
# right now only build the master branch
branches:
only:
- master
matrix:
exclude:
- os: osx
compiler: gcc
allow_failures:
- os: osx