-
Notifications
You must be signed in to change notification settings - Fork 4
/
.jenkins.yml
45 lines (45 loc) · 2.05 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
35
36
37
38
39
40
41
42
43
44
45
# 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 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
- 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_vision_datamatrix
- catkin_make roslint_pandora_vision_hazmat
- catkin_make roslint_pandora_vision_hole
- catkin_make roslint_pandora_vision_landoltc
- catkin_make roslint_pandora_vision_motion
- catkin_make roslint_pandora_vision_predator
- catkin_make roslint_pandora_vision_qrcode
- catkin_make roslint_pandora_vision_victim
- catkin_make tests # Build all tests, even from other packages. Its not optimal, but...
- catkin_make run_tests_pandora_vision_hole
- catkin_make run_tests_pandora_vision_victim
- catkin_make run_tests_pandora_vision_qrcode
- catkin_make run_tests_pandora_vision_datamatrix
- catkin_test_results build