-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
194 lines (178 loc) · 4.58 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
stages:
- scc
- genLicense
- checkLicense
- build_tc32
- build_riscv
- build_iotStudio
- cov
- fossid
- plainPW_check
- oss
- misspellChecking
scc:
stage: scc
script:
- echo "Enter scc stage"
- scc | tee scc.txt
- bash /usr/bin/scc_calc.sh
- echo "The End SCC result:"
- cat scc.txt
artifacts:
paths:
- scc.txt
genLicense:
variables:
CODE_COMPILE_ARCH: 'EAGLE_ANDES'
COV_PF_CATALOG: 'ZIGBEE'
stage: genLicense
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: 'EAGLE_ANDES'
COV_PF_CATALOG: 'ZIGBEE'
stage: checkLicense
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_tc32:
variables:
PROJECT_PATH: './telink_zigbee_ble_concurrent_sdk/build/tlsr_tc32'
PROJECT_NAME: 'telink_zigbee_ble_concurrent_sdk_8258'
stage: build_tc32
tags:
- LINUX
- TC32
before_script:
script:
- which tc32-elf-gcc
- chmod +x telink_zigbee_ble_concurrent_sdk/tools/*.sh
- date
- ls telink_zigbee_ble_concurrent_sdk/build/tlsr_tc32
- $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS1 -import $PROJECT_PATH -cleanBuild $PROJECT_NAME/concurrent_sampleLight_8258
- date
artifacts:
paths:
- "$PROJECT_PATH/concurrent_sampleLight_8258/*.bin"
- "$PROJECT_PATH/concurrent_sampleLight_8258/*.lst"
- "$PROJECT_PATH/concurrent_sampleLight_8258/*.elf"
build_riscv:
variables:
PROJECT_PATH: './telink_zigbee_ble_concurrent_sdk/build/tlsr_riscv'
PROJECT_NAME: 'telink_zigbee_ble_concurrent_sdk_b91'
stage: build_riscv
before_script:
script:
- ls
- pwd
- chmod +x telink_zigbee_ble_concurrent_sdk/tools/*.sh
- date
- echo "--------------- Will build Demo -----------------"
- echo $PROJECT_PATH
- $ANDESRISCV_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import $PROJECT_PATH -cleanBuild $PROJECT_NAME/concurrent_sampleLight_b91
- date
artifacts:
paths:
- "$PROJECT_PATH/concurrent_sampleLight_b91/output/*.bin"
- "$PROJECT_PATH/concurrent_sampleLight_b91/output/objdump.txt"
build_iotStudio:
variables:
PROJECT_PATH: './telink_zigbee_ble_concurrent_sdk/build/iot_riscv_tl321x'
PROJECT_NAME: 'telink_zigbee_ble_concurrent_sdk_tl321x'
stage: build_iotStudio
before_script:
script:
- ls
- pwd
- chmod +x telink_zigbee_ble_concurrent_sdk/tools/*.sh
- date
- echo "--------------- Will build Demo -----------------"
- echo $PROJECT_PATH
- $TELINK_IDE_BUILD -data ${CI_PIPELINE_ID}_WS -import $PROJECT_PATH -cleanBuild $PROJECT_NAME/concurrent_sampleLight_tl321x
- date
artifacts:
paths:
- "$PROJECT_PATH/concurrent_sampleLight_tl321x/*.bin"
- "$PROJECT_PATH/concurrent_sampleLight_tl321x/*.lst"
- "$PROJECT_PATH/concurrent_sampleLight_tl321x/*.elf"
# The cov job definition
cov:
variables:
CODE_COMPILE_ARCH: 'TC32'
COV_PF_CATALOG: 'ZIGBEE'
stage: cov
tags:
- COV
- LINUX
- TC32
before_script:
script:
- chmod +x telink_zigbee_ble_concurrent_sdk/tools/*.sh
- $COV_B COV_$CI_PROJECT_NAME $COV_B_TEMPLATE/$CODE_COMPILE_ARCH $TC32_ECLIPSE_BUILD -data ${CI_PIPELINE_ID}_WS -import telink_zigbee_ble_concurrent_sdk/build/tlsr_tc32 -cleanBuild telink_zigbee_ble_concurrent_src_8258/concurrent_sampleLight_8258
- $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
plainPW_check:
stage: plainPW_check
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
oss:
tags:
- OSS
stage: oss
script:
- oss_checking .
artifacts:
paths:
- scan_result
when: manual
misspellChecking:
stage: misspellChecking
tags:
- LINUX
script:
- echo "--------------- Begin ------------------------"
- misspell-check
- echo "---------------- End -----------------------"
artifacts:
paths:
- misspell_result.txt
when: manual