-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (32 loc) · 1005 Bytes
/
.gitlab-ci.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
image: ros:kinetic-ros-core
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_CLONE_PATH: '$CI_BUILDS_DIR/ros/src/$CI_PROJECT_NAME'
cache:
paths:
- ccache/
before_script:
#### Setup environment ####
- apt-get update -qq
- ROS_DISTRO=$(ls /opt/ros/)
- rosdep update
- mkdir -p $CI_BUILDS_DIR/ros/src
#########################################
#### install deb dependencies ####
- apt-get install -y python-pip python-catkin-tools python-rosdep zlib1g-dev wget
#########################################
#### install ROS dependencies ####
- cd $CI_BUILDS_DIR/ros/
- rosdep install --from-paths src -iy --rosdistro ${ROS_DISTRO}
#########################################
catkin_tools:
stage: build
script:
- cd $CI_BUILDS_DIR/ros/
- catkin build --summarize --no-status --force-color
catkin_tools_tests:
stage: test
script:
- cd $CI_BUILDS_DIR/ros/
- catkin run_tests --no-status --force-color
- catkin_test_results # Check if one of the tests failed!