-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
70 lines (60 loc) · 1.88 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
variables:
GIT_STRATEGY: none
image_aduulm_rolling: mrm-git.e-technik.uni-ulm.de:4567/aduulm/docker_images/aduulm-ros2-rolling:latest
image_aduulm_iron: mrm-git.e-technik.uni-ulm.de:4567/aduulm/docker_images/aduulm-ros2-iron:latest
stages:
- library
- library_test
- ros
.build_library:
stage: library
script:
- build_repo_with_dependencies_ros2.sh release aduulm_launch_lib
.test_library:
stage: library_test
artifacts:
when: always
expire_in: 2 days
reports:
junit: report_lib_*.xml
coverage: /^\s*lines:\s*\d+.\d+\%/
script:
- build_repo_with_dependencies_ros2.sh coverage aduulm_launch_lib
- source ./colcon_build/install/setup.bash
- pytest src/aduulm_launch/library/test/python --junitxml=report_lib_python.xml
.build_ros:
stage: ros
artifacts:
expire_in: 2 days
reports:
junit: report_ros_python.xml
script:
# delete any src folders that are still around from previous runs
- rm -rf src
- source gitlab-ros.sh
# create colcon workspace with all dependencies
- setup_repo_workspace_with_dependencies.sh
# make source folders older than the build/devel folders so that make will not rebuild the targets
- find ./src -exec touch -t 202001010000 {} \;
# build only missing packages
- build_colcon_workspace.sh release aduulm_launch
- source ./colcon_build/install/setup.bash
- pytest src/aduulm_launch/ros2/test/python --junitxml=report_ros_python.xml
build_library_iron:
extends: .build_library
image: $image_aduulm_iron
test_library_iron:
extends: .test_library
image: $image_aduulm_iron
build_ros_iron:
extends: .build_ros
image: $image_aduulm_iron
build_library_rolling:
extends: .build_library
image: $image_aduulm_rolling
test_library_rolling:
extends: .test_library
image: $image_aduulm_rolling
build_ros_rolling:
extends: .build_ros
image: $image_aduulm_rolling