-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (78 loc) · 2.72 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
language: cpp
matrix:
include:
# On Linux, exclude test_machine_specs; started to fail when we switched to g++-5
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: PYTHONPATH=/usr/local/lib/python2.7/dist-packages PATH=${PATH}:${HOME}/castxml/bin JOBS=4 TEST_EXCLUDE='test_machine_spec'
addons:
apt:
packages:
- libboost1.55-all-dev
- python-dev
- libode-dev
- libeigen3-dev
- python-pip
cache:
apt: true
directories:
- ${HOME}/castxml
# 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.
- os: osx
osx_image: xcode7.2
compiler: clang
env: JOBS=2 TEST_EXCLUDE='test_(machine_specs|random)'
cache:
apt: true
directories:
- ${HOME}/castxml
- /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 TEST_EXCLUDE='test_(machine_specs|random)'
allow_failures:
- os: osx
install:
- if [ -n "$DOCKERFILE" ]; then
docker build -t "$DOCKERFILE" -f "scripts/docker/$DOCKERFILE" .;
fi
- if [ -z "$DOCKERFILE" -a "$TRAVIS_OS_NAME" = "osx" ]; then
brew install boost-python ode eigen python cmake;
if [ ! -e ${HOME}/castxml ]; then
curl https://midas3.kitware.com/midas/download/item/318762/castxml-macosx.tar.gz | tar zxf - -C ${HOME};
fi;
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;
if [ ! -e ${HOME}/castxml ]; then
wget -O - https://midas3.kitware.com/midas/download/item/318227/castxml-linux.tar.gz | tar zxf - -C ${HOME};
fi;
fi
- sudo -H pip -v install pygccxml https://bitbucket.org/ompl/pyplusplus/get/1.7.0.tar.gz
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 -E '$TEST_EXCLUDE'";
else
mkdir -p build &&
cd build &&
cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp .. &&
make -j $JOBS &&
ctest -E "$TEST_EXCLUDE";
fi
# TIMES OUT BECAUSE IT DOES NOT PRODUCE OUTPUT FOR MORE THAN 10 MINUTES
# generate python bindings
# make -j $JOBS update_bindings