-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (37 loc) · 1.05 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
image: registry.gitlab.com/knr-selfie/carolocup/carolocup:latest
variables:
GLOBAL_C11: "true"
GIT_SUBMODULE_STRATEGY: recursive
catkin_make:
stage: build
script:
- catkin_make
only:
- develop
- master
catkin_make roslint:
stage: test
script:
- catkin_make roslint -DROSLINT_CPP_OPTS="--filter=-whitespace/braces,-runtime/references"
only:
- develop
- master
- merge_requests
catkin lint:
stage: test
script:
- catkin_lint --strict --ignore env_var .
only:
- develop
- master
- merge_requests
Code formatting check:
stage: test
script:
- echo "Checking formatting of python code in cane of fail you can format it using yapf (command yapf -i -r ./)"
- yapf --diff --recursive ./src/
- echo "Checking formatting of C++ code in case of fail you can format it using clang-format"
- wget https://raw.githubusercontent.com/Sarcasm/run-clang-format/master/run-clang-format.py
- python3 run-clang-format.py -r src --clang-format-executable clang-format-11
only:
- merge_requests