forked from ompl/omplapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (54 loc) · 1.33 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
sudo: false
cache:
apt: true
language: cpp
os:
- linux
- osx
env:
# - BUILD_TYPE=Debug
- BUILD_TYPE=Release
matrix:
allow_failures:
- os: osx
addons:
apt:
sources:
- libccd-debs
- fcl-debs
packages:
- libboost-all-dev
- python-dev
- libode-dev
- libeigen3-dev
- freeglut3-dev
- libassimp-dev
- libccd-dev
- libfcl-dev
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update;
brew tap homebrew/science;
brew outdated boost || brew upgrade boost;
brew install ode eigen libccd assimp;
brew install https://raw.github.com/dartsim/homebrew-dart/master/fcl.rb;
fi
script:
# get OMPL subrepository
- git clone --depth=1 --branch=master git://github.com/ompl/ompl.git
# Create build directory
- mkdir -p build
- cd build
# Configure
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp ..
# TODO: fix python bindings
# Build
- make -j4
# Run unit tests
# On OS X, exclude test_machine_specs; fails due to "lazy" memory freeing in Release mode (test passes in Debug builds).
# On OS X, exclude test_random; fails due to bug in Boost.Random in 1.56.
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
ctest -E 'test_(machine_specs|random)';
else
ctest;
fi