-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jenkins.yml
34 lines (34 loc) · 1.54 KB
/
.jenkins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Continuous integration configuration file, used by Jenkins
# Author: Chris Zalidis
install:
- export ROS_DISTRO=indigo
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${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 python-pip
- sudo apt-get install libeigen3-dev
- sudo pip install pandoradep
- sudo rosdep init
- rosdep update
# Create workspace
- mkdir -p $BUILD_HOME/catkin_ws/src
- cd $BUILD_HOME/catkin_ws/src
- wstool init .
# Find and download non-debian dependencies
- pandoradep scan $CI_SOURCE_PATH > deps.rosinstall
- wstool merge deps.rosinstall
- wstool update
# Delete the .rosinstall version of this repo and use the one of the branch we are testing
- rm -rf $REPOSITORY_NAME
- ln -s $CI_SOURCE_PATH . # Link the repo we are testing to the new workspace
- cd ..
# Install debian dependencies
- rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y -r # -r to resolve recursive depends, should not used.
- source /opt/ros/$ROS_DISTRO/setup.bash
script: # All commands must exit with code 0 on success. Anything else is considered failure.
- catkin_make --only-pkg-with-deps $REPOSITORY_NAME
- source devel/setup.bash
- catkin_make roslint_pandora_slam_2d
- catkin_test_results build