adds .travis file

This commit is contained in:
Louis-Guillaume DUBOIS 2015-09-19 16:04:00 +02:00
parent 6241a63264
commit c7d78bdd81

35
.travis.yml Normal file
View file

@ -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