-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
24 lines (20 loc) · 976 Bytes
/
.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
sudo: required
language: generic
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
- sed -i 's/git@github.com:/https:\/\/<user>:<token>@github.com\//' .gitmodules
- git submodule update --init --recursive
services:
- docker
install:
- docker run -itd --name build --net="host"
-v $(pwd):/catkin_ws/src
ros:indigo-perception
before_script:
- docker exec build bash -c 'apt-get update && apt-get install -y ros-indigo-desktop-full libopenblas-dev liblapack-dev libarpack* libarmadillo*'
- docker exec build bash -c 'cd /catkin_ws/src/lib/eigen-3.3.7 && mkdir build && cd build && cmake .. && make install && cd /usr/local/include && sudo ln -sf eigen3/Eigen Eigen'
- docker exec build bash -c 'source /opt/ros/indigo/setup.bash'
script:
- docker exec build bash -c 'source /opt/ros/indigo/setup.bash && cd /catkin_ws && catkin_make -DCMAKE_BUILD_TYPE=Release -j4'