-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitlab-ci.yml
215 lines (202 loc) · 9.74 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
204
205
206
207
208
209
210
211
212
213
214
215
stages:
- build
- linting
- unittests
- integration-test
build-job:
stage: build
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [cpu]
script:
- python3.8 -m pip install -r requirements.txt
- python3.8 -m pip install .
lint-job:
stage: linting
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [cpu]
script:
pylint -ry --output-format=parseable --exit-zero ./pyqmri > pylint.log
artifacts:
paths:
- pylint.log
test-single-on-cpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [cpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp_CPU.xml --cov=pyqmri test/unittests/test_LinearDataOperator_CPU.py
- coverage xml -o coverage_unittests_LinOp_CPU.xml
- pytest --junitxml results_unittests_grad_CPU.xml --cov=pyqmri test/unittests/test_gradient_CPU.py
- coverage xml -o coverage_unittests_grad_CPU.xml
- pytest --junitxml results_unittests_symgrad_CPU.xml --cov=pyqmri test/unittests/test_symmetrized_gradient_CPU.py
- coverage xml -o coverage_unittests_symgrad_CPU.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
test-single-on-amd-gpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp.xml --cov=pyqmri test/unittests/test_LinearDataOperator.py
- coverage xml -o coverage_unittests_LinOp.xml
- pytest --junitxml results_unittests_grad.xml --cov=pyqmri test/unittests/test_gradient.py
- coverage xml -o coverage_unittests_grad.xml
- pytest --junitxml results_unittests_symgrad.xml --cov=pyqmri test/unittests/test_symmetrized_gradient.py
- coverage xml -o coverage_unittests_symgrad.xml
- pytest --junitxml test_Linear3DDataOperator.xml --cov=pyqmri test/unittests/test_Linear3DDataOperator.py
- coverage xml -o coverage_unittests_Linear3DDataOperator.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
test-single-on-nvidia-gpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private
tags: [nvidia_gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp.xml --cov=pyqmri test/unittests/test_LinearDataOperator.py
- coverage xml -o coverage_unittests_LinOp.xml
- pytest --junitxml results_unittests_grad.xml --cov=pyqmri test/unittests/test_gradient.py
- coverage xml -o coverage_unittests_grad.xml
- pytest --junitxml results_unittests_symgrad.xml --cov=pyqmri test/unittests/test_symmetrized_gradient.py
- coverage xml -o coverage_unittests_symgrad.xml
- pytest --junitxml test_Linear3DDataOperator.xml --cov=pyqmri test/unittests/test_Linear3DDataOperator.py
- coverage xml -o coverage_unittests_Linear3DDataOperator.xml
- pytest --junitxml test_unittests_softsense_op.xml --cov=pyqmri test/unittests/test_soft_sense_operators.py
- coverage xml -o coverage_unittests_softsense_op.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
test-double-on-cpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [cpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp_CPU_double.xml --cov=pyqmri test/unittests/test_LinearDataOperator_CPU_double.py
- coverage xml -o coverage_unittests_LinOp_CPU_double.xml
- pytest --junitxml results_unittests_grad_CPU_double.xml --cov=pyqmri test/unittests/test_gradient_CPU_double.py
- coverage xml -o coverage_unittests_grad_CPU_double.xml
- pytest --junitxml results_unittests_symgrad_CPU_double.xml --cov=pyqmri test/unittests/test_symmetrized_gradient_CPU_double.py
- coverage xml -o coverage_unittests_symgrad_CPU_double.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
test-double-on-amd-gpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp_double.xml --cov=pyqmri test/unittests/test_LinearDataOperator_double.py
- coverage xml -o coverage_unittests_LinOp_double.xml
- pytest --junitxml results_unittests_grad_double.xml --cov=pyqmri test/unittests/test_gradient_double.py
- coverage xml -o coverage_unittests_grad_double.xml
- pytest --junitxml results_unittests_symgrad_double.xml --cov=pyqmri test/unittests/test_symmetrized_gradient_double.py
- coverage xml -o coverage_unittests_symgrad_double.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
test-double-on-nvidia-gpu:
stage: unittests
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private
tags: [nvidia_gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- pytest --junitxml results_unittests_LinOp_double.xml --cov=pyqmri test/unittests/test_LinearDataOperator_double.py
- coverage xml -o coverage_unittests_LinOp_double.xml
- pytest --junitxml results_unittests_grad_double.xml --cov=pyqmri test/unittests/test_gradient_double.py
- coverage xml -o coverage_unittests_grad_double.xml
- pytest --junitxml results_unittests_symgrad_double.xml --cov=pyqmri test/unittests/test_symmetrized_gradient_double.py
- coverage xml -o coverage_unittests_symgrad_double.xml
artifacts:
reports:
junit: results_unittests_*.xml
#cobertura: coverage_unittests_*.xml
integration-job-cpu:
stage: integration-test
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [cpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- ipcluster start&
- pytest --junitxml results_integrationtests_single_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_single_slice_CPU.py
- coverage xml -o coverage_integrationtests_single_slice.xml
- pytest --junitxml results_integrationtests_multi_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_multi_slice_CPU.py
- coverage xml -o coverage_integrationtests_multi_slice.xml
- ipcluster stop&
artifacts:
reports:
junit: results_integrationtests_*.xml
#cobertura: coverage_integrationtests_*.xml
integration-job-gpu:
stage: integration-test
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private/amd_build
tags: [gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- ipcluster start&
- pytest --junitxml results_integrationtests_single_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_single_slice.py
- coverage xml -o coverage_integrationtests_single_slice.xml
- pytest --junitxml results_integrationtests_multi_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_multi_slice.py
- coverage xml -o coverage_integrationtests_multi_slice.xml
- ipcluster stop&
artifacts:
reports:
junit: results_integrationtests_*.xml
#cobertura: coverage_integrationtests_*.xml
integration-job-nvidia-gpu:
stage: integration-test
image: registry.gitlab.tugraz.at/f23b736137140d66/pyqmri_private
tags: [nvidia_gpu]
before_script:
- python3.8 -m pip install -r requirements.txt --no-cache-dir
- python3.8 -m pip install -e . --no-cache-dir
script:
- ipcluster start&
- pytest --junitxml results_integrationtests_single_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_single_slice.py
- coverage xml -o coverage_integrationtests_single_slice.xml
- pytest --junitxml results_integrationtests_multi_slice.xml --cov=pyqmri --integration-cover test/integrationtests/test_integration_test_multi_slice.py
- coverage xml -o coverage_integrationtests_multi_slice.xml
- ipcluster stop&
artifacts:
reports:
junit: results_integrationtests_*.xml
#cobertura: coverage_integrationtests_*.xml
#pages:
# stage: deploy
# dependencies:
# - test-job
# - integration-job
# script:
# - mv coverage*.xml public/
# artifacts:
# paths:
# - public
# expire_in: 30 days
# only:
# - master