-
Notifications
You must be signed in to change notification settings - Fork 50
/
.gitlab-ci.yml
190 lines (170 loc) · 4.62 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
variables:
DOC_SERVER: doc
DOC_CENTER: /home/xl_ci/doc_center
before_script:
- source /home/share/devtools/env.sh
- source .ci/build_sdk.sh
- source .ci/build_applications.sh
stages:
- doc_build
- doc_deploy
- build_hbird_eval
- build_ddr200t
default:
interruptible: true
## Job for build document
build_doc:
stage: doc_build
only:
changes:
- doc/source/**/**/**/*
- .gitlab-ci.yml
retry: 1
artifacts:
name: "hbird_sdk_doc-${CI_COMMIT_SHA::8}"
paths:
- doc/build
expire_in: 2 day
script:
- cd doc
# https://www.baeldung.com/linux/locale-environment-variables#3-lcall-environment-variable
- export LC_ALL=en_EN.UTF-8
- activate_swdev
#- pip3 install --user -r requirements.txt
#- export PATH=$HOME/.local/bin:$PATH
- make clean
- make all
- make latexpdf
- make clean_xml
- cp build/latex/*.pdf build/html/
tags:
- env::native
- host::whss1
## Job for deploy document to internal server
deploy_doc:
stage: doc_deploy
when: on_success
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/*
- .gitlab-ci.yml
script:
- ssh $DOC_SERVER "rm -rf $DOC_CENTER/hbird_sdk/*"
- ssh $DOC_SERVER "mkdir -p $DOC_CENTER/hbird_sdk/"
- cd doc/build
- scp -r html $DOC_SERVER:$DOC_CENTER/hbird_sdk
tags:
- env::native
- host::whss1
dependencies:
- build_doc
## Job for deploy document to nuclei website
deploy_website:
stage: doc_deploy
when: on_success
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/*
- .gitlab-ci.yml
script:
- ./.ci/ftp_deploy.sh $FTPUSER $FTPPWD $FTPSERVER doc/build/html hbird_sdk
tags:
- env::native
- host::whss1
dependencies:
- build_doc
## Jobs for board hbird_eval
.build_hbird_eval_job_template: &build_hbird_eval_job_def
stage: build_hbird_eval
tags:
- env::native
- host::whss1
script:
- SOC=hbird BOARD=hbird_eval hsdk_build_directory application
- SOC=hbird BOARD=hbird_eval hsdk_build_directory test
# Build For HBird Evaluation Board with E203 Core, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_e203:
variables:
DOWNLOAD: "ilm"
SOC: "hbird"
CORE: "e203"
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_e203:
variables:
DOWNLOAD: "flash"
CORE: "e203"
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_e203:
variables:
DOWNLOAD: "flashxip"
CORE: "e203"
<<: *build_hbird_eval_job_def
# Build For E203E, with Flash, FlashXIP, ILM Mode
build_hbird_eval_ilm_e203e:
variables:
DOWNLOAD: "ilm"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flash_e203e:
variables:
DOWNLOAD: "flash"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
build_hbird_eval_flashxip_e203e:
variables:
DOWNLOAD: "flashxip"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_hbird_eval_job_def
## Jobs for board ddr200t
.build_ddr200t_job_template: &build_ddr200t_job_def
stage: build_ddr200t
tags:
- env::native
- host::whss1
script:
- SOC=hbirdv2 BOARD=ddr200t hsdk_build_directory application
- SOC=hbirdv2 BOARD=ddr200t hsdk_build_directory test
# Build For HBird Evaluation Board with E203 Core, with Flash, FlashXIP, ILM Mode
build_ddr200t_ilm_e203:
variables:
DOWNLOAD: "ilm"
CORE: "e203"
<<: *build_ddr200t_job_def
build_ddr200t_flash_e203:
variables:
DOWNLOAD: "flash"
CORE: "e203"
<<: *build_ddr200t_job_def
build_ddr200t_flashxip_e203:
variables:
DOWNLOAD: "flashxip"
CORE: "e203"
<<: *build_ddr200t_job_def
# Build For E203E, with Flash, FlashXIP, ILM Mode
build_ddr200t_ilm_e203e:
variables:
DOWNLOAD: "ilm"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def
build_ddr200t_flash_e203e:
variables:
DOWNLOAD: "flash"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def
build_ddr200t_flashxip_e203e:
variables:
DOWNLOAD: "flashxip"
CORE: "e203e"
FIND_IGNORE: "! -wholename \"*dsp*\""
<<: *build_ddr200t_job_def