forked from RainerKuemmerle/g2o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (63 loc) · 1.43 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: cpp
notifications:
email:
recipients:
on_success: change # default: change
on_failure: always # default: always
env:
global:
- DO_COVERAGE=OFF
# where do we want to build
matrix:
include:
- os: linux
arch: amd64
compiler: gcc
dist: focal
env: DO_COVERAGE=ON
- os: linux
arch: amd64
compiler: clang
dist: focal
- os: osx
arch: amd64
osx_image: xcode12.2
before_install:
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$DO_COVERAGE" = "ON" ]; then
echo "Activating code coverage build";
export DO_COVERAGE_BUILD=ON;
else
export DO_COVERAGE_BUILD=OFF;
fi
- env | sort
# install:
# - script/install-deps-${TRAVIS_OS_NAME}.sh
before_script:
- mkdir build
- cd build
- cmake --version
- cmake -DBUILD_UNITTESTS=ON -DBUILD_CODE_COVERAGE=$DO_COVERAGE_BUILD -DCMAKE_BUILD_TYPE=Debug ..
- cat g2o/config.h
script:
- make -j $(nproc)
- ctest --extra-verbose --output-on-failure
after_success:
- if [ "$DO_COVERAGE_BUILD" = "ON" ]; then
echo "Uploading to codecov";
bash $TRAVIS_BUILD_DIR/build/codecov.sh;
fi
# installing dependencies
addons:
apt: # linux
packages:
- libeigen3-dev
- qtdeclarative5-dev
- qt5-qmake
- libqglviewer-dev-qt5
- libsuitesparse-dev
- lcov
homebrew: # mac os
packages:
- cmake
- eigen