-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
81 lines (67 loc) · 1.52 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
75
76
77
78
79
80
81
default:
tags:
- native
before_script:
- .\cleanCMakeCache.bat
stages:
- test
- static-code-analysis
- DebugBuild
- doxygen
cppcheck:
stage: static-code-analysis
rules:
- when: always
allow_failure: true
script:
- .\codeanalysis.bat
artifacts:
name: "CppCheck"
when: always
paths:
- build/cppCheckReport/*
Unit Tests:
needs:
stage: test
rules:
- when: always
script:
- ruby toolchain\ceedling\bin\ceedling
artifacts:
name: "UnitTestArtefact"
paths:
- build/ceedling/artifacts/test/*
Doxygen:
stage: doxygen
allow_failure: true
needs:
rules:
- when: always
script:
doxygen "documentation/Doxyfile" 2> documentation_error.log
artifacts:
name: "DoxyArtefact"
when:
always
paths:
- documentation_error.log
- build/documentation/Charon_UDS_Server.chm
.build_instruction: &build
- cmake -GNinja . -B "build/CMakeDebugBuild/" --preset="$CI_JOB_NAME"
- ninja -C "build/CMakeDebugBuild" all | Tee-Object -FilePath "${CI_JOB_NAME}BuildLog.log"
.build_job:
stage: DebugBuild
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
script:
- *build
artifacts:
paths:
- build/CMakeDebugBuild/port/*
windows:
extends: .build_job
standalone:
extends: .build_job
stm32f4:
extends: .build_job