forked from ompl/omplapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (59 loc) · 1.52 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: JOBS=4
addons:
apt:
packages:
- libboost1.55-all-dev
- libode-dev
- libeigen3-dev
- freeglut3-dev
- libassimp-dev
cache:
apt: true
- os: osx
osx_image: xcode9.1
compiler: clang
env: JOBS=2
cache:
directories:
- /usr/local
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew tap dartsim/dart;
brew tap homebrew/science;
brew update;
brew install homebrew/science/libccd;
brew install dartsim/dart/fcl;
brew install ode eigen assimp;
else
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get -y update;
sudo apt-get -y install g++-5;
export CXX=g++-5;
if [ ! -e /usr/local/lib/libfcl.so ]; then
wget -O - https://github.com/danfis/libccd/archive/v2.0.tar.gz | tar zxf - ;
cd libccd-2.0;
cmake .;
sudo make install;
cd ..;
wget -O - https://github.com/flexible-collision-library/fcl/archive/0.5.0.tar.gz | tar zxf - ;
cd fcl-0.5.0;
cmake .;
sudo make install;
cd ..;
fi;
fi
script:
# get OMPL subrepository
- git clone --depth=1 --branch=master git://github.com/ompl/ompl.git
- mkdir -p build
- cd build
- cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp ..
- make -j $JOBS
- ctest -j $JOBS