File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -488,20 +488,24 @@ pipeline {
488488 for (f in changedDistributionTests. collate(24 )) {
489489 def names = f. join(" " )
490490 tests[" Distribution Tests: ${ names} " ] = { node (" linux && docker" ) {
491+ deleteDir()
491492 docker. image(' stanorg/ci:gpu-cpp17' ). inside {
492- unstash ' MathSetup'
493- sh """
494- echo CXX=${ CLANG_CXX} > make/local
495- echo O=0 >> make/local
496- echo N_TESTS=${ N_TESTS} >> make/local
497- """
498- script {
499- if (params. withRowVector || isBranch(' develop' ) || isBranch(' master' )) {
500- sh " echo CXXFLAGS+=-DSTAN_TEST_ROW_VECTORS >> make/local"
501- sh " echo CXXFLAGS+=-DSTAN_PROB_TEST_ALL >> make/local"
493+ catchError {
494+ unstash ' MathSetup'
495+ sh """
496+ echo CXX=${ CLANG_CXX} > make/local
497+ echo O=0 >> make/local
498+ echo N_TESTS=${ N_TESTS} >> make/local
499+ """
500+ script {
501+ if (params. withRowVector || isBranch(' develop' ) || isBranch(' master' )) {
502+ sh " echo CXXFLAGS+=-DSTAN_TEST_ROW_VECTORS >> make/local"
503+ sh " echo CXXFLAGS+=-DSTAN_PROB_TEST_ALL >> make/local"
504+ }
502505 }
506+ sh " ./runTests.py -j${ PARALLEL} ${ names} "
503507 }
504- sh " ./runTests.py -j ${ PARALLEL } ${ names } "
508+ deleteDir()
505509 }
506510 } }
507511 }
You can’t perform that action at this time.
0 commit comments