-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (39 loc) · 1.11 KB
/
.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
40
41
42
stages:
- build
.job_template: &job_definition
stage: build
only:
- master
- develop
- /^.*-devel$/
- /^release-.*$/
- ci-config
- hotfix
tags:
- docker
script:
- CHECKOUT_DIR=`pwd`
- rm -rf ~/catkin_ws/build
- rm -rf ~/catkin_ws/devel
- rm -rf ~/catkin_ws/src/coterie
- rm -f ~/catkin_ws/src/CMakeLists.txt
- mkdir -p ~/catkin_ws/src
- cd ~/catkin_ws/src
- source /opt/ros/`rosversion -d`/setup.bash
- export CMAKE_PREFIX_PATH=/usr/local/lib/CMake:$CMAKE_PREFIX_PATH
- catkin_init_workspace
- ln -s ${CHECKOUT_DIR} coterie
- cd ~/catkin_ws/
- catkin_make -DCMAKE_BUILD_TYPE=Release
- source ~/catkin_ws/devel/setup.bash
- catkin_make -DCMAKE_BUILD_TYPE=Release run_tests && catkin_test_results
- catkin_make -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON
- source ~/catkin_ws/devel/setup.bash
- catkin_make -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON run_tests && catkin_test_results
- gcovr -r .
build_kinetic:
<<: *job_definition
image: kdr/test_coterie:kinetic
build_lunar:
<<: *job_definition
image: kdr/test_coterie:lunar