@@ -215,17 +215,21 @@ del /Q *.7z
215
215
// Python unittest for CPU
216
216
def python_ut (docker_type ) {
217
217
timeout(time : max_time, unit : ' MINUTES' ) {
218
+ sh " ${ docker_run} ${ docker_type} find . -name '*.pyc' -type f -delete"
218
219
sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/unittest"
219
- sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests-3.4 --with-timer --verbose tests/python/unittest"
220
220
sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/train"
221
+ sh " ${ docker_run} ${ docker_type} find . -name '*.pyc' -type f -delete"
222
+ sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests-3.4 --with-timer --verbose tests/python/unittest"
221
223
}
222
224
}
223
225
224
226
// GPU test has two parts. 1) run unittest on GPU, 2) compare the results on
225
227
// both CPU and GPU
226
228
def python_gpu_ut (docker_type ) {
227
229
timeout(time : max_time, unit : ' MINUTES' ) {
230
+ sh " ${ docker_run} ${ docker_type} find . -name '*.pyc' -type f -delete"
228
231
sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/gpu"
232
+ sh " ${ docker_run} ${ docker_type} find . -name '*.pyc' -type f -delete"
229
233
sh " ${ docker_run} ${ docker_type} PYTHONPATH=./python/ nosetests-3.4 --with-timer --verbose tests/python/gpu"
230
234
}
231
235
}
@@ -312,11 +316,13 @@ stage('Unit Test') {
312
316
xcopy C:\\ mxnet\\ model model /E /I /Y
313
317
call activate py3
314
318
set PYTHONPATH=${ env.WORKSPACE} \\ pkg_vc14_cpu\\ python
319
+ del /S /Q ${ env.WORKSPACE} \\ pkg_vc14_cpu\\ python\\ *.pyc
315
320
C:\\ mxnet\\ test_cpu.bat"""
316
321
bat """ xcopy C:\\ mxnet\\ data data /E /I /Y
317
322
xcopy C:\\ mxnet\\ model model /E /I /Y
318
323
call activate py2
319
324
set PYTHONPATH=${ env.WORKSPACE} \\ pkg_vc14_cpu\\ python
325
+ del /S /Q ${ env.WORKSPACE} \\ pkg_vc14_cpu\\ python\\ *.pyc
320
326
C:\\ mxnet\\ test_cpu.bat"""
321
327
}
322
328
}
@@ -332,11 +338,13 @@ C:\\mxnet\\test_cpu.bat"""
332
338
xcopy C:\\ mxnet\\ model model /E /I /Y
333
339
call activate py3
334
340
set PYTHONPATH=${ env.WORKSPACE} \\ pkg_vc14_gpu\\ python
341
+ del /S /Q ${ env.WORKSPACE} \\ pkg_vc14_gpu\\ python\\ *.pyc
335
342
C:\\ mxnet\\ test_gpu.bat"""
336
343
bat """ xcopy C:\\ mxnet\\ data data /E /I /Y
337
344
xcopy C:\\ mxnet\\ model model /E /I /Y
338
345
call activate py2
339
346
set PYTHONPATH=${ env.WORKSPACE} \\ pkg_vc14_gpu\\ python
347
+ del /S /Q ${ env.WORKSPACE} \\ pkg_vc14_gpu\\ python\\ *.pyc
340
348
C:\\ mxnet\\ test_gpu.bat"""
341
349
}
342
350
}
@@ -390,4 +398,4 @@ stage('Deploy') {
390
398
}
391
399
}
392
400
}
393
- }
401
+ }
0 commit comments