forked from leggedrobotics/hpp-fcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
110 lines (97 loc) · 2.47 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: cpp
env:
global:
- CTEST_PARALLEL_LEVEL=4
- CTEST_OUTPUT_ON_FAILURE=1
- CXX_FLAGS_DEBUG="-O1"
- MAKEFLAGS="-j2"
- BUILD_TESTING=ON
cache:
ccache: true
matrix:
include:
- name: "Xenial - Release - g++"
env: BUILD_TYPE=Release
dist: xenial
compiler: g++
addons:
apt:
packages:
- cmake
- libboost-all-dev
- libassimp-dev
- libeigen3-dev
- liboctomap-dev
- python-lxml
- python3-lxml
- doxygen
- name: "Bionic - Release - g++"
env: BUILD_TYPE=Release
dist: bionic
compiler: g++
addons:
apt:
packages:
- cmake
- libboost-all-dev
- libassimp-dev
- libeigen3-dev
- liboctomap-dev
- python-lxml
- python3-lxml
- doxygen
- name: "Bionic - Debug - g++"
env: BUILD_TYPE=Debug
dist: bionic
compiler: g++
addons:
apt:
packages:
- cmake
- libboost-all-dev
- libassimp-dev
- libeigen3-dev
- liboctomap-dev
- python-lxml
- python3-lxml
- doxygen
- name: "Bionic - Release - g++ - NO TEST"
env:
- BUILD_TYPE=Release
- BUILD_TESTING=OFF
dist: bionic
compiler: g++
addons:
apt:
packages:
- cmake
- libboost-all-dev
- libassimp-dev
- libeigen3-dev
- liboctomap-dev
- doxygen
- name: "OSX - Release - clang"
env: BUILD_TYPE=Release
os: osx
compiler: clang
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source travis_custom/custom_before_install_linux.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then source travis_custom/custom_before_install_osx.sh ; fi
script:
# Create build directory
- which python
- mkdir build
- cd build
# Configure
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTING=$BUILD_TESTING -DCMAKE_CXX_FLAGS=-w -DCMAKE_CXX_FLAGS_DEBUG=${CXX_FLAGS_DEBUG} -DPYTHON_EXECUTABLE=$(which python) ..
# Build
- make
# Run unit tests
- travis_wait 30 make test
# Make sure we can install and uninstall with no issues
- sudo make install
- sudo make uninstall