-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.gitlab-ci.yml
74 lines (64 loc) · 1.62 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
image: superowesome/bobble-sim:stable
stages:
- build
- test
- analyze
cache:
paths:
- ccache/
before_script:
- source /opt/ros/melodic/setup.bash
- git clone https://gitlab.com/VictorLamoine/ros_gitlab_ci.git
- source ros_gitlab_ci/gitlab-ci.bash || true
catkin_lint:
stage: build
before_script:
- apt update -q -y || true
- apt install -q -y python-catkin-lint || true
script:
- catkin_lint -W3 .
# catkin tools
catkin_tools:
stage: build
script:
- catkin build --summarize --no-status --force-color
# catkin_make
catkin_make:
stage: build
script:
- catkin_make
catkin_tools_tests:
stage: test
script:
- catkin build --summarize --no-status --force-color
- catkin run_tests --no-status --force-color -j1
- mv src/bobble_controllers/test/data/*.csv ..
- catkin_test_results --verbose .
artifacts:
paths:
- ./*.csv
# These move commands should not be neccessary and break
# running these tests locally. It is all working around
# a limitation of properly passing artifacts
# from one stage to the next.
# Open issue on this is here :
# https://gitlab.com/VictorLamoine/ros_gitlab_ci/issues/5
test_summary_report:
stage: analyze
script:
- mv ../*.csv src/bobble_controllers/test/data/
- catkin config --install
- catkin build
- source install/setup.bash
- cd src/bobble_controllers/test
- jupyter nbconvert --execute --to html TestSummary.ipynb
- cd ../../..
- mv src/bobble_controllers/test/TestSummary.html ..
- mv src/bobble_controllers/test/data/*.csv ..
dependencies:
- catkin_tools_tests
artifacts:
paths:
- ./TestSummary.html
- ./*.png
- ./*.csv