From c7d78bdd8127525c2c170dfe3e86a1d839cd634d Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Sat, 19 Sep 2015 16:04:00 +0200 Subject: [PATCH] adds .travis file --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..28f71b4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language: + - python + - cpp +python: + - "2.7" +compiler: + - gcc +env: + - ros_distro=indigo + - ros_distro=jade +before_install: + - export CI_SOURCE_PATH="`pwd`" + - export ROS_DISTRO=$ros_distro + - sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' + - sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 + - sudo apt-get update + - sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential ros-${ROS_DISTRO}-base + - sudo rosdep init + - rosdep update +install: # Use this to install any prerequisites or dependencies necessary to run your build + - source /opt/ros/${ROS_DISTRO}/setup.bash + - mkdir -p ~/hand_control_ws/src + - cd ~/hand_control_ws/src + - catkin_init_workspace + - curl -L 'https://github.com/AutonomyLab/ardrone_autonomy/archive/master.tar.gz' | tar -xz + - curl -L 'https://github.com/ros-drivers/rgbd_launch/archive/master.tar.gz' | tar -xz + - curl -L 'https://github.com/ros-drivers/freenect_stack/archive/master.tar.gz' | tar -xz + - ln -S "$CI_SOURCE_PATH" . + - cd .. + - sudo rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y +before_script: # Use this to prepare your build for testing e.g. copy database configurations, environment variables, etc. + - source ~/ros_catkin_ws/install_isolated/setup.bash + - cd ~/hand_control_ws +script: # All commands must exit with code 0 on success. Anything else is considered failure. + - catkin_make -j2