-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
113 lines (104 loc) · 1.95 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
stages:
- scc
- genLicense
- checkLicense
- oss
- misspellChecking
- sensitive_word_check
scc:
stage: scc
tags:
- LINUX
dependencies: []
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
when: manual #always
genLicense:
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: 'EAGLE_ANDES'
COV_PF_CATALOG: 'BLE'
stage: checkLicense
tags:
- LINUX
allow_failure: yes
dependencies: []
before_script:
script:
- date
- check_license
#- generat_license_list
- date
- ls
artifacts:
when: always
paths:
- "mismatch_license.txt"
- "no_license*.txt"
- "unknow_type_file.txt"
when: manual #always
oss:
tags:
- OSS
stage: oss
dependencies: []
script:
- cd app/ios
- oss_checking .
- cd -
- cp -rf app/ios/scan_result ./app_ios_scan_result
- rm -rf app/ios
- oss_checking .
artifacts:
name: "opensource_scan_result"
paths:
- ./scan_result
- ./app_ios_scan_result
when: manual
misspellChecking:
stage: misspellChecking
tags:
- LINUX
dependencies: []
script:
- echo "--------------- Begin ------------------------"
- misspell-check
- echo "---------------- End -----------------------"
artifacts:
when: on_failure
paths:
- misspell_result.txt
when: manual # Just check, ignore fail
sensitive_word_check:
stage: sensitive_word_check
tags:
- LINUX
dependencies: []
script:
- grep -E "(esb|nrf|nordic|Shock[ ]*Burst)" . -inr
- >
if [ $? == 0 ]; then
exit 1
fi
when: manual