forked from ompl/ompl
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
62 lines (59 loc) · 1.54 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
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
cache:
apt: true
directories:
- /usr/local
- os: osx
osx_image: xcode9.1
compiler: clang
env: JOBS=2
cache:
directories:
- /usr/local
- os: linux
sudo: required
services:
- docker
env: DOCKERFILE="debian-jessie" JOBS=4
- os: linux
sudo: required
services:
- docker
env: DOCKERFILE="ubuntu-xenial" JOBS=4
install:
- if [ -n "$DOCKERFILE" ]; then
docker build -t "$DOCKERFILE" -f "scripts/docker/$DOCKERFILE" .;
fi
- if [ -z "$DOCKERFILE" -a "$TRAVIS_OS_NAME" = "osx" ]; then
brew update;
brew install ode eigen;
fi
- if [ -z "$DOCKERFILE" -a "$TRAVIS_OS_NAME" = "linux" ]; then
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;
fi
script:
- if [ -n "$DOCKERFILE" ]; then
docker run "$DOCKERFILE" /bin/sh -c "mkdir /root/ompl/build && cd /root/ompl/build && cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp .. && make -j $JOBS && ctest -j $JOBS";
else
mkdir -p build &&
cd build &&
cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp .. &&
make -j $JOBS &&
ctest -j $JOBS;
fi