-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
197 lines (180 loc) · 4.15 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
stages:
- genLicense
- checkLicense
- build_sample
- build_module
- build_feature
- clean_build
- plainPW_check
- cov
- fossid
- release_customize_sdk
genLicense:
variables:
CODE_COMPILE_ARCH: 'TC32'
COV_PF_CATALOG: 'BLE'
stage: genLicense
tags:
- LINUX
before_script:
script:
- date
- generat_license_list
- date
artifacts:
paths:
- "license_list_gen.txt"
- "no_license_list_gen.txt"
- "mismatch_license_file_gen.txt"
when: manual
checkLicense:
variables:
CODE_COMPILE_ARCH: 'TC32'
COV_PF_CATALOG: 'BLE'
stage: checkLicense
tags:
- LINUX
allow_failure: yes
before_script:
script:
- date
- check_license
#- generat_license_list # For no license files
- date
artifacts:
when: always
paths:
- "mismatch_license.txt"
- "no_license*.txt"
- "unknow_type_file.txt"
build_sample:
stage: build_sample
tags:
- LINUX
- TC32
before_script:
script:
- which tc32-elf-gcc
- chmod +x b80_ble_sdk/*.sh
- date
- $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import ./b80_ble_sdk/ -cleanBuild telink_b80_ble_single_connection_sdk/8208_ble_sample
- date
build_module:
stage: build_module
tags:
- LINUX
- TC32
before_script:
script:
- which tc32-elf-gcc
- chmod +x b80_ble_sdk/*.sh
- date
- $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import ./b80_ble_sdk/ -cleanBuild telink_b80_ble_single_connection_sdk/8208_module
- date
build_feature:
stage: build_feature
tags:
- LINUX
- TC32
before_script:
script:
- which tc32-elf-gcc
- chmod +x b80_ble_sdk/*.sh
- date
- $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import ./b80_ble_sdk/ -cleanBuild telink_b80_ble_single_connection_sdk/8208_feature_test
- date
clean_build:
stage: clean_build
tags:
- LINUX
- TC32
script:
- ls -a
- rm -r * .git*
- ls -a
when: always
plainPW_check:
stage: plainPW_check
tags:
- LINUX
script:
- echo "Enter Plain Password checking stage"
- check_plain_weak_password | tee result.txt
- ls -l result.txt
- echo "Error List:"
- cat result.txt
artifacts:
paths:
- result.txt
when: manual
# The cov job definition
cov:
variables:
CODE_COMPILE_ARCH: 'TC32'
COV_PF_CATALOG: 'BLE'
stage: cov
tags:
- COV
- LINUX
- TC32
before_script:
script:
- chmod +x b80_ble_sdk/*.sh
- $COV_B COV_$CI_PROJECT_NAME $COV_B_TEMPLATE/$CODE_COMPILE_ARCH $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import ./b80_ble_sdk -cleanBuild b80_ble_sdk/8208_ble_sample
- $COV_A COV_$CI_PROJECT_NAME
- cov_add_commit_steam_project_2_platform.sh
when: manual
fossid:
tags:
- FOSSID
stage: fossid
script:
- fossid_check.sh
artifacts:
paths:
- fossid*.txt
when: manual
.release_sdk_template: &release_sdk_template
variables:
PACK_NAME: "release_sdk_template"
stage: release_customize_sdk
tags:
- windows_tc32_test
script:
- sdk_release_customize.sh ./release_sdk_config
artifacts:
name: "$PACK_NAME"
expire_in: '3 yrs'
paths:
- "./b80_ble_sdk"
- "./README.md"
- "./doc"
when: manual
release_sdk_S1:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_S1"
release_sdk_S2:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_S2"
release_sdk_S3:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_S3"
release_sdk_custom_made_S0:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_custom_made_S0"
release_sdk_custom_made_S1:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_custom_made_S1"
release_sdk_custom_made_S2:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_custom_made_S2"
release_sdk_custom_made_S3:
<<: *release_sdk_template
variables:
PACK_NAME: "telink_b80_ble_single_connection_sdk_V3.4.1.2_custom_made_S3"