This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
/
.gitlab-ci.yml
204 lines (187 loc) · 4.04 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
198
199
200
201
202
203
stages:
- build
- test
- test_hardware
- deploy
.hdl_tests:
tags:
- vivado
- matlab
stage: test
dependencies:
- build:2018_R2
artifacts:
when: always
name: "$CI_COMMIT_REF_NAME"
paths:
- test/logs/
- Report.pdf
reports:
junit: test/BSPTestResults.xml
# Default build
build:2018_R2:
tags:
- vivado
- matlab
stage: build
script:
- export MLRELEASE=R2019a
- ./CI/scripts/dockermake build
- ./CI/scripts/dockermake add_libad9361
- export INCLUDE_EXAMPLES=1
- ./CI/scripts/dockermake gen_tlbx
- export INCLUDE_EXAMPLES=0
- ./CI/scripts/dockermake gen_tlbx
- mkdir mltbx
- ls *.mltbx
- cp *.mltbx mltbx/
artifacts:
paths:
- hdl_wa_bsp/
- mltbx/
- deps/
# Future branches
build:master:
tags:
- vivado
- matlab
stage: build
script:
- export HDLBRANCH=hdl_2018_r2
- export MLRELEASE=R2019a
- ./CI/scripts/dockermake build
- export HDLBRANCH=
- export MLRELEASE=
allow_failure: true
artifacts:
paths:
- hdl_wa_bsp/
# Test HWA no install zed
test:2018_R2_ZED:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=zed
- ./CI/scripts/dockermake test
# Test HWA no install zc702
test:2018_R2_ZC702:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=zc702
- ./CI/scripts/dockermake test
# Test HWA no install zc706
test:2018_R2_ZC706:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=zc706
- ./CI/scripts/dockermake test
# Test HWA no install zcu102
test:2018_R2_ZCU102:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=zcu102
- ./CI/scripts/dockermake test
# Test HWA no install adrv9361
test:2018_R2_ADRV9361:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=adrv9361
- ./CI/scripts/dockermake test
# Test HWA no install adrv9364
test:2018_R2_ADRV9364:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- export BOARD=adrv9364
- ./CI/scripts/dockermake test
# Test HWA with install
test_installer:2018_R2_Installer:
extends: .hdl_tests
script:
- export MLRELEASE=R2019a
- cp mltbx/* .
- pwd
- ls
- ls *.mltbx
- ./CI/scripts/dockermake test_installer
artifacts:
when: always
paths:
- mltbx/
- zip/
- test/logs/
reports:
junit: test/BSPTestResults.xml
# Test weekly fully sythesized design
test:Synthesize:
when: manual
extends: .hdl_tests
script:
- ./CI/scripts/dockermake test_synth
# Test targeting demos (no hardware)
test:targeting_demos:
tags:
- matlab
- vivado
stage: test
dependencies:
- build:2018_R2
script:
- export MLRELEASE=R2019a
- ./CI/scripts/dockermake test_targeting_demos
artifacts:
when: always
name: "$CI_COMMIT_REF_NAME"
paths:
- test/
- Report.pdf
# Test streaming interfaces with hardware
test_hardware:Streaming_Hardware:
tags:
- matlab
- hardware
stage: test_hardware
dependencies:
- build:2018_R2
script:
- export MLRELEASE=R2019a
- cd CI/scripts
- make test_streaming
artifacts:
paths:
- logs/
- Report.pdf
# Test EVM performance with hardware
test_hardware:EVM_Hardware:
only:
- schedules
tags:
- matlab
- hardware
stage: test_hardware
dependencies:
- build:2018_R2
script:
- export MLRELEASE=R2019a
- cd CI/scripts
- make test_evm
artifacts:
paths:
- logs/
- Report.pdf
# Deploy
deploy:
tags:
- matlab
stage: deploy
dependencies:
- test_installer:2018_R2_Installer
script:
- echo "Complete"
artifacts:
paths:
- mltbx/