-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
74 lines (63 loc) · 1.99 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.build_script_template : &build_script_definition
script:
- mkdir -p ~/ros_ws/src
- cd ~/ros_ws
- catkin_make
- cd src
- cp -r /builds/$GITLAB_USER_LOGIN/mementar .
- git clone -b proba https://github.com/sarthou/ontologenius.git
- cd ..
- catkin_make
.test_script_template : &test_script_definition
script:
- mkdir -p ~/ros_ws/src
- cd ~/ros_ws
- catkin_make
- cd src
- cp -r /builds/$GITLAB_USER_LOGIN/mementar .
- git clone -b proba https://github.com/sarthou/ontologenius.git
- cd ..
- catkin_make
- source devel/setup.bash
- catkin_make run_tests_mementar_rostest -j1 && catkin_make test -j1 -DCATKIN_WHITELIST_PACKAGES="mementar"
.kinetic_before_template : &kinetic_before_definition
before_script:
- source /opt/ros/kinetic/setup.bash
- apt-get update -qq && apt-get install -y libcppunit-1.13-0v5 libcppunit-dev
.lunar_before_template : &lunar_before_definition
before_script:
- source /opt/ros/lunar/setup.bash
- apt-get update -qq && apt-get install -y libcppunit-1.13-0v5 libcppunit-dev libtinyxml-dev
.melodic_before_template : &melodic_before_definition
before_script:
- source /opt/ros/melodic/setup.bash
- apt-get update -qq && apt-get install -y libcppunit-1.14-0 libcppunit-dev libtinyxml-dev
stages:
- build
- test
run-build-kinetic:
image: ros:kinetic-perception-xenial
stage: build
<<: *kinetic_before_definition
<<: *build_script_definition
run-test-kinetic:
stage: test
image: ros:kinetic-perception-xenial
<<: *kinetic_before_definition
<<: *test_script_definition
run-test-melodic:
stage: test
image: ros:melodic-perception-bionic
<<: *melodic_before_definition
<<: *test_script_definition
run-build-melodic:
image: ros:melodic-perception-bionic
stage: build
<<: *melodic_before_definition
<<: *build_script_definition
run-build-lunar:
image: ros:lunar-perception-xenial
stage: build
allow_failure : true
<<: *lunar_before_definition
<<: *build_script_definition