forked from ompl/ompl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
64 lines (61 loc) · 1.77 KB
/
.travis.yml
File metadata and controls
64 lines (61 loc) · 1.77 KB
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
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
addons:
apt:
packages:
- libboost-serialization1.55-dev
- libboost-filesystem1.55-dev
- libboost-system1.55-dev
- libboost-program-options1.55-dev
- libboost-test1.55-dev
- libode-dev
- libeigen3-dev
cache:
apt: true
- os: osx
osx_image: xcode9.1
compiler: clang
- os: linux
sudo: required
services:
- docker
env: DOCKERFILE="debian-stretch" PYTHON=/usr/bin/python
- os: linux
sudo: required
services:
- docker
env: DOCKERFILE="ubuntu-xenial" PYTHON=/usr/bin/python
- os: linux
sudo: required
services:
- docker
env: DOCKERFILE="ubuntu-bionic" PYTHON=/usr/bin/python3
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 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 -DPYTHON_EXEC=$PYTHON -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp .. && make -j `nproc` && ctest";
else
mkdir -p build &&
cd build &&
cmake -DOMPL_REGISTRATION=OFF -DCMAKE_INSTALL_PREFIX=tmp .. &&
make -j `nproc 2>/dev/null || sysctl -n hw.ncpu` &&
ctest;
fi