From b48895d559624ad0010fa786592bd818a86e8987 Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Mon, 18 Sep 2017 13:55:27 +0200 Subject: [PATCH] CI: Add Travis config. --- .travis.yml | 30 ++++++++++++++++++++++++++++++ README.md | 10 +++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..6c2421eb0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +sudo: required +language: none + +services: + - docker + +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 master + git submodule update --init --recursive + - | + cd ~/workspace + docker build -t worker $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 + ' diff --git a/README.md b/README.md index 6810fb134..9a2e714a8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # ROS integration for Franka Emika research robots -See the [Franka Control Interface (FCI) documentation][fci-docs] for more information. +[![Build Status][travis-status]][travis] + +See the [Franka Control Interface (FCI) documentation][fci-docs] for more information. ## License -All packages of `franka_ros` are licensed under the [Apache 2.0 license][apache-2.0] +All packages of `franka_ros` are licensed under the [Apache 2.0 license][apache-2.0]. ## MoveIt! quickstart for Panda research @@ -20,5 +22,7 @@ Launch RViz `roslaunch panda_moveit_config moveit_rviz.launch` -[fci-docs]: https://frankaemika.github.io/docs [apache-2.0]: https://www.apache.org/licenses/LICENSE-2.0.html +[fci-docs]: https://frankaemika.github.io/docs +[travis-status]: https://travis-ci.org/frankaemika/franka_ros.svg?branch=kinetic-devel +[travis]: https://travis-ci.org/frankaemika/franka_ros