forked from frankaemika/franka_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 951 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
25
26
27
28
29
30
31
32
33
34
35
36
sudo: required
language: none
services:
- docker
matrix:
include:
- env: CI_ROS=kinetic
- env: CI_ROS=melodic
- env: CI_ROS=noetic
before_script:
- mkdir -p ~/workspace/catkin_ws/src
- |
cd ~/workspace
git clone https://github.com/frankaemika/libfranka.git
cd libfranka
git checkout ${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}} || git checkout develop
git submodule update --init --recursive
- |
cd ~/workspace
docker build -t worker -f $TRAVIS_BUILD_DIR/.ci/Dockerfile.$CI_ROS $TRAVIS_BUILD_DIR/.ci
ln -sf $TRAVIS_BUILD_DIR catkin_ws/src/franka_ros
script:
- docker run
-v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR
-v ~/workspace:/workspace
worker /bin/sh -c '
cd /workspace/libfranka &&
.ci/libonly.sh &&
export CMAKE_PREFIX_PATH="/workspace/libfranka/build-libonly:$CMAKE_PREFIX_PATH" &&
cd /workspace/catkin_ws &&
src/franka_ros/.ci/debug.sh
'