@@ -130,37 +130,61 @@ jobs:
130
130
if : tag IS blank
131
131
workspaces :
132
132
create :
133
- name : aqua1
134
- paths : aqua1.dat
133
+ name : aqua137
134
+ paths :
135
+ - aqua1.dat
136
+ - aqua137.dep
135
137
before_script :
136
138
- pip install cvxopt
137
139
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
138
- script : stestr --test-path test/aqua run --blacklist-file selection.txt && coverage3 combine && mv .coverage aqua1.dat
140
+ script :
141
+ - stestr --test-path test/aqua run --blacklist-file selection.txt 2>&1 | tee out.txt
142
+ - coverage3 combine
143
+ - mv .coverage aqua1.dat
144
+ - python tools/extract_deprecation.py -file out.txt -output aqua137.dep
139
145
- name : " Test Aqua 1 Python 3.8"
140
146
<< : *stage_test_aqua
141
147
if : tag IS blank
148
+ workspaces :
149
+ create :
150
+ name : aqua138
151
+ paths : aqua138.dep
142
152
python : 3.8
143
153
before_script :
144
154
- pip install cvxopt
145
- script : stestr --test-path test/aqua run --blacklist-file selection.txt
155
+ script :
156
+ - stestr --test-path test/aqua run --blacklist-file selection.txt 2>&1 | tee out.txt
157
+ - python tools/extract_deprecation.py -file out.txt -output aqua138.dep
146
158
- name : " Test Aqua 2 Python 3.7"
147
159
<< : *stage_test_aqua
148
160
if : tag IS blank
149
161
workspaces :
150
162
create :
151
- name : aqua2
152
- paths : aqua2.dat
163
+ name : aqua237
164
+ paths :
165
+ - aqua2.dat
166
+ - aqua237.dep
153
167
before_script :
154
168
- pip install cvxopt
155
169
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
156
- script : stestr --test-path test/aqua run --whitelist-file selection.txt && coverage3 combine && mv .coverage aqua2.dat
170
+ script :
171
+ - stestr --test-path test/aqua run --whitelist-file selection.txt 2>&1 | tee out.txt
172
+ - coverage3 combine
173
+ - mv .coverage aqua2.dat
174
+ - python tools/extract_deprecation.py -file out.txt -output aqua237.dep
157
175
- name : " Test Aqua 2 Python 3.8"
158
176
<< : *stage_test_aqua
159
177
if : tag IS blank
178
+ workspaces :
179
+ create :
180
+ name : aqua238
181
+ paths : aqua238.dep
160
182
python : 3.8
161
183
before_script :
162
184
- pip install cvxopt
163
- script : stestr --test-path test/aqua run --whitelist-file selection.txt
185
+ script :
186
+ - stestr --test-path test/aqua run --whitelist-file selection.txt 2>&1 | tee out.txt
187
+ - python tools/extract_deprecation.py -file out.txt -output aqua238.dep
164
188
- name : " Test Chemistry Python 3.7"
165
189
<< : *stage_dependencies
166
190
if : tag IS blank
@@ -169,8 +193,10 @@ jobs:
169
193
- OPENBLAS_NUM_THREADS=1
170
194
workspaces :
171
195
create :
172
- name : chemistry
173
- paths : chemistry.dat
196
+ name : chemistry37
197
+ paths :
198
+ - chemistry.dat
199
+ - chemistry37.dep
174
200
install :
175
201
# install gaussian dependency libgfortran 5
176
202
- sudo apt-get -y update
@@ -179,10 +205,18 @@ jobs:
179
205
- pip install https://github.com/rpmuller/pyquante2/archive/master.zip --progress-bar off
180
206
before_script :
181
207
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
182
- script : stestr --test-path test/chemistry run && coverage3 combine && mv .coverage chemistry.dat
208
+ script :
209
+ - stestr --test-path test/chemistry run 2>&1 | tee out.txt
210
+ - coverage3 combine
211
+ - mv .coverage chemistry.dat
212
+ - python tools/extract_deprecation.py -file out.txt -output chemistry37.dep
183
213
- name : " Test Chemistry Python 3.8"
184
214
<< : *stage_dependencies
185
215
if : tag IS blank
216
+ workspaces :
217
+ create :
218
+ name : chemistry38
219
+ paths : chemistry38.dep
186
220
python : 3.8
187
221
env : OPENBLAS_NUM_THREADS=1
188
222
install :
@@ -191,70 +225,127 @@ jobs:
191
225
- sudo apt-get -y install libgfortran5
192
226
# Installing pyquante2 master branch...
193
227
- pip install https://github.com/rpmuller/pyquante2/archive/master.zip --progress-bar off
194
- script : stestr --test-path test/chemistry run
228
+ script :
229
+ - stestr --test-path test/chemistry run 2>&1 | tee out.txt
230
+ - python tools/extract_deprecation.py -file out.txt -output chemistry38.dep
195
231
- name : " Test Finance Python 3.7"
196
232
<< : *stage_dependencies
197
233
if : tag IS blank
198
234
workspaces :
199
235
create :
200
- name : finance
201
- paths : finance.dat
236
+ name : finance37
237
+ paths :
238
+ - finance.dat
239
+ - finance37.dep
202
240
before_script :
203
241
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
204
- script : stestr --test-path test/finance run && coverage3 combine && mv .coverage finance.dat
242
+ script :
243
+ - stestr --test-path test/finance run 2>&1 | tee out.txt
244
+ - coverage3 combine
245
+ - mv .coverage finance.dat
246
+ - python tools/extract_deprecation.py -file out.txt -output finance37.dep
205
247
- name : " Test Finance Python 3.8"
206
248
<< : *stage_dependencies
207
249
if : tag IS blank
250
+ workspaces :
251
+ create :
252
+ name : finance38
253
+ paths : finance38.dep
208
254
python : 3.8
209
- script : stestr --test-path test/finance run
255
+ script :
256
+ - stestr --test-path test/finance run 2>&1 | tee out.txt
257
+ - python tools/extract_deprecation.py -file out.txt -output finance38.dep
210
258
- name : " Test Machine Learning Python 3.7"
211
259
<< : *stage_dependencies
212
260
if : tag IS blank
213
261
workspaces :
214
262
create :
215
- name : ml
216
- paths : ml.dat
263
+ name : ml37
264
+ paths :
265
+ - ml.dat
266
+ - ml37.dep
217
267
before_script :
218
268
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
219
- script : stestr --test-path test/ml run && coverage3 combine && mv .coverage ml.dat
269
+ script :
270
+ - stestr --test-path test/ml run 2>&1 | tee out.txt
271
+ - coverage3 combine
272
+ - mv .coverage ml.dat
273
+ - python tools/extract_deprecation.py -file out.txt -output ml37.dep
220
274
- name : " Test Machine Learning Python 3.8"
221
275
<< : *stage_dependencies
222
276
if : tag IS blank
277
+ workspaces :
278
+ create :
279
+ name : ml38
280
+ paths : ml38.dep
223
281
python : 3.8
224
- script : stestr --test-path test/ml run
282
+ script :
283
+ - stestr --test-path test/ml run 2>&1 | tee out.txt
284
+ - python tools/extract_deprecation.py -file out.txt -output ml38.dep
225
285
- name : " Test Optimization Python 3.7"
226
286
<< : *stage_dependencies
227
287
if : tag IS blank
228
288
workspaces :
229
289
create :
230
- name : optimization
231
- paths : optimization.dat
290
+ name : optimization37
291
+ paths :
292
+ - optimization.dat
293
+ - optimization37.dep
232
294
before_script :
233
295
- export PYTHON="coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-mode"
234
- script : stestr --test-path test/optimization run && coverage3 combine && mv .coverage optimization.dat
296
+ script :
297
+ - stestr --test-path test/optimization run 2>&1 | tee out.txt
298
+ - coverage3 combine
299
+ - mv .coverage optimization.dat
300
+ - python tools/extract_deprecation.py -file out.txt -output optimization37.dep
235
301
- name : " Test Optimization Python 3.8"
236
302
<< : *stage_dependencies
237
303
if : tag IS blank
304
+ workspaces :
305
+ create :
306
+ name : optimization38
307
+ paths : optimization38.dep
238
308
python : 3.8
239
- script : stestr --test-path test/optimization run
309
+ script :
310
+ - stestr --test-path test/optimization run 2>&1 | tee out.txt
311
+ - python tools/extract_deprecation.py -file out.txt -output optimization38.dep
240
312
- name : " Run pip check"
241
313
<< : *stage_dependencies
242
314
if : tag IS blank
243
315
script :
244
316
- pip install cvxopt
245
317
- pip install https://github.com/rpmuller/pyquante2/archive/master.zip --progress-bar off
246
318
- pip check
319
+ - stage : Deprecation Messages
320
+ name : " Print deprecation messages"
321
+ if : tag IS blank
322
+ workspaces :
323
+ use :
324
+ - aqua137
325
+ - aqua138
326
+ - aqua237
327
+ - aqua238
328
+ - chemistry37
329
+ - chemistry38
330
+ - finance37
331
+ - finance38
332
+ - ml37
333
+ - ml38
334
+ - optimization37
335
+ - optimization38
336
+ script :
337
+ - sort -f -u aqua137.dep aqua138.dep aqua237.dep aqua238.dep chemistry37.dep chemistry38.dep finance37.dep finance38.dep ml37.dep ml38.dep optimization37.dep optimization38.dep || true
247
338
- stage : Coverage
248
339
name : " Combine all coverages and upload to Coveralls"
249
340
if : tag IS blank
250
341
workspaces :
251
342
use :
252
- - aqua1
253
- - aqua2
254
- - chemistry
255
- - finance
256
- - ml
257
- - optimization
343
+ - aqua137
344
+ - aqua237
345
+ - chemistry37
346
+ - finance37
347
+ - ml37
348
+ - optimization37
258
349
install :
259
350
- pip install -U coverage coveralls diff-cover
260
351
script :
0 commit comments