forked from heremaps/here-data-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
178 lines (168 loc) · 3.6 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${DOCKER_IMAGE_VERSION}
variables:
LD_PRELOAD: "/lib/x86_64-linux-gnu/libSegFault.so"
SEGFAULT_SIGNALS: "all"
stages:
- build
- test
- translate_report
- deploy
wv_security_job:
stage: test
tags:
- docker-prod
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE_SECURITY}:${DOCKER_IMAGE_SECURITY_VERSION}
variables:
LD_PRELOAD: "/lib64/libSegFault.so"
SEGFAULT_SIGNALS: "all"
script:
- $CI_PROJECT_DIR/scripts/linux/weekly/build_centos_debug_wv.sh --centos
- $CI_PROJECT_DIR/scripts/linux/weekly/security_scanner_upload_wv.sh build/binaries.tar.gz [email protected]
only:
refs:
- branches
- master
- schedules
variables:
- $SECURITY
artifacts:
when: always
paths:
- build/binaries.tar.gz
expire_in: 1 year # save our archive for 1 year as job artifacts
build_linux_armhf_fv:
stage: build
tags:
- docker-prod
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE_ARMHF}:${DOCKER_IMAGE_ARMHF_VERSION}
script:
- $CI_PROJECT_DIR/scripts/linux-armhf/fv/gitlab_build_armhf_fv.sh
only:
refs:
- branches
- master
- schedules
variables:
- $FV
build_test_linux_fv:
stage: build
tags:
- docker-prod
script:
- $CI_PROJECT_DIR/scripts/linux/fv/gitlab_build_fv.sh
- $CI_PROJECT_DIR/scripts/linux/fv/gitlab_test_fv.sh
only:
refs:
- branches
- master
- schedules
variables:
- $FV
artifacts:
reports:
junit:
- reports/*.xml
when: always
paths:
- reports
expire_in: 1 year
build_test_nv:
stage: build
tags:
- docker-prod
script:
- $CI_PROJECT_DIR/scripts/linux/nv/gitlab_build_valgrind.sh
- $CI_PROJECT_DIR/scripts/linux/nv/gitlab_test_valgrind.sh
only:
refs:
- branches
- master
- schedules
variables:
- $NV
artifacts:
when: always
paths:
- reports
- $CI_PROJECT_DIR
expire_in: 1 year
test_performance_nv:
stage: test
tags:
- docker-prod
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE_PERFORMANCE}:${DOCKER_IMAGE_PERFORMANCE_VERSION}
script:
- $CI_PROJECT_DIR/scripts/linux/nv/gitlab_test_performance.sh
only:
refs:
- branches
- master
- schedules
variables:
- $NV
artifacts:
when: always
paths:
- ./*.gz
- ./*.html
- heaptrack
- reports
expire_in: 1 year
upload_sonar_nv:
stage: deploy
tags:
- docker-prod
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE_COVERAGE}:${DOCKER_IMAGE_COVERAGE_VERSION}
script:
- $CI_PROJECT_DIR/scripts/linux/nv/gitlab_cppcheck_and_upload_sonar.sh
only:
refs:
- branches
- master
- schedules
variables:
- $NV
translate_report:
stage: translate_report
tags:
- docker-prod
image: python:3.6
when: always
before_script:
- pip install junit2html
script:
# - python -m junit2htmlreport --merge olp-merged-report.xml reports/*.xml
# - python -m junit2htmlreport olp-merged-report.xml
- python -m junit2htmlreport --report-matrix reports/index.html reports/*.xml
- if [ "$NV" == "1" ]; then cat heaptrack_report.html >> reports/index.html; fi
- mkdir -p .public
- cp reports/*.html .public/
artifacts:
paths:
- .public
only:
refs:
- branches
- master
- schedules
variables:
- $FV
- $NV
pages:
stage: deploy
tags:
- docker-prod
when: always
script: mv .public public
artifacts:
paths:
- public
expire_in: 1 year
only:
refs:
- branches
- master
- schedules
variables:
- $FV
- $NV