-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (57 loc) · 1.71 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
cache:
apt: true
directories:
- ${HOME}/castxml
- /usr/local
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: PYTHONPATH=/usr/local/lib/python2.7/dist-packages
- os: osx
osx_image: xcode7.2
compiler: clang
allow_failures:
- os: osx
addons:
apt:
packages:
- libboost-all-dev
- python-dev
- libode-dev
- libeigen3-dev
- python-pip
install:
- if [ "$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;
else
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 https://github.com/gccxml/pygccxml/archive/v1.7.2.tar.gz https://bitbucket.org/ompl/pyplusplus/get/1.6.tar.gz
script:
# Create build directory
- mkdir -p build
- cd build
# Configure
- cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp -DCASTXML:FILEPATH=${HOME}/castxml/bin/castxml ..
# TIMES OUT BECAUSE IT DOES NOT PRODUCE OUTPUT FOR MORE THAN 10 MINUTES
# generate python bindings
#- make -j4 update_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