-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins.yml
22 lines (22 loc) · 987 Bytes
/
.jenkins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Continuous integration configuration file, used by Jenkins
# Author: Chris Zalidis
install:
- export ROS_DISTRO=indigo
- export CI_SOURCE_PATH=$(pwd)
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin ros-$ROS_DISTRO-ros
- sudo rosdep init
- rosdep update
# Create workspace
- mkdir -p $BUILD_HOME/catkin_ws/src
# Add this folder to the workspace
- ln -s $CI_SOURCE_PATH $BUILD_HOME/catkin_ws/src
- cd $BUILD_HOME/catkin_ws
- rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
- source /opt/ros/$ROS_DISTRO/setup.bash
script: # All commands must exit with code 0 on success. Anything else is considered failure.
- catkin_make
- source devel/setup.bash
- catkin_make roslint