hand_control/.travis.yml

40 lines
1.6 KiB
YAML
Raw Normal View History

2015-09-19 14:04:00 +00:00
language:
- cpp
python:
- "2.7"
compiler:
- gcc
env:
2015-09-19 15:20:21 +00:00
- ros_distro=hydro
# - ros_distro=indigo
2015-09-19 14:04:00 +00:00
before_install:
- export CI_SOURCE_PATH="`pwd`"
- export ROS_DISTRO=$ros_distro
2015-09-19 15:20:21 +00:00
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
2015-09-19 14:04:00 +00:00
- sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
2015-09-19 15:20:21 +00:00
- sudo apt-get update -qq
2015-09-19 17:09:19 +00:00
- sudo apt-get install -qq -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential python-catkin-pkg
2015-09-19 14:04:00 +00:00
- sudo rosdep init
- rosdep update
2015-09-19 15:20:21 +00:00
- sudo apt-get install ros-${ROS_DISTRO}-ros-base
2015-09-19 15:41:29 +00:00
- sudo pip install cpplint
2015-09-19 14:04:00 +00:00
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
2015-09-19 15:20:21 +00:00
# - curl -L 'https://github.com/AutonomyLab/ardrone_autonomy/archive/master.tar.gz' | tar -xz
# - curl -L 'https://github.com/ros-drivers/rgbd_launch/archive/2.1.0.tar.gz' | tar -xz
# - curl -L 'https://github.com/ros-drivers/freenect_stack/archive/master.tar.gz' | tar -xz
- ln -s "$CI_SOURCE_PATH" .
2015-09-19 14:04:00 +00:00
- 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.
2015-09-19 15:20:21 +00:00
- source /opt/ros/${ROS_DISTRO}/setup.bash
2015-09-19 14:04:00 +00:00
- cd ~/hand_control_ws
2015-09-19 15:41:29 +00:00
- cd src
2015-09-19 17:09:19 +00:00
- cpplint *.hpp *.cpp *.h
2015-09-19 15:41:29 +00:00
- cd ..
2015-09-19 14:04:00 +00:00
script: # All commands must exit with code 0 on success. Anything else is considered failure.
- catkin_make -j2