forked from tier4/autoware_auto_msgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (51 loc) · 1.07 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
stages:
- build
- test
.build_base: &build_base
stage: build
script:
- apt-get update
- rosdep update
- rosdep install --from autoware_auto_msgs --ignore-src -y
- mkdir -p /opt/autoware_auto_msgs
- '
colcon build
--install-base /opt/autoware_auto_msgs
--merge-install
--cmake-args
-DCMAKE_BUILD_TYPE=Release
--base-path autoware_auto_msgs
'
- cp LICENSE /opt/autoware_auto_msgs
- tar cfz opt.tar.gz /opt/autoware_auto_msgs
artifacts:
expire_in: 1 day
when: always
paths:
- log
- build
- opt.tar.gz
.test_base: &test_base
stage: test
script:
- tar xf opt.tar.gz -C /
- '
colcon test
--install-base /opt/autoware_auto_msgs
--merge-install
--base-path autoware_auto_msgs
'
- 'colcon test-result --verbose'
artifacts:
expire_in: 1 day
when: always
paths:
- log
build_foxy:
image: ros:foxy
<<: *build_base
test_foxy:
image: ros:foxy
<<: *test_base
needs:
- build_foxy