From 583b5acc874e6e36b591801c508828f82c8d269b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 9 Feb 2019 10:48:12 -0700 Subject: [PATCH] [CI]: expose tests in Jenkins --- Jenkinsfile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e3e48848f..e6f70559f4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,7 +76,15 @@ pipeline image 'tjhei/candi:v9.0.1-r4' } } - post { cleanup { cleanWs() } } + post { + always { + sh "cp /home/dealii/build/Testing/*/*.xml $WORKSPACE/serial.xml || true" + xunit tools: [CTest(pattern: '*.xml')] + } + cleanup { + cleanWs() + } + } steps { @@ -97,7 +105,7 @@ pipeline $WORKSPACE/ time ninja -j $NP time ninja setup_tests - time ctest --output-on-failure -DDESCRIPTION="CI-$JOB_NAME" -j $NP + time ctest --output-on-failure -DDESCRIPTION="CI-$JOB_NAME" -j $NP --no-compress-output -T test ''' } } @@ -113,7 +121,15 @@ pipeline image 'tjhei/candi:v9.0.1-r4' } } - post { cleanup { cleanWs() } } + post { + always { + sh "cp /home/dealii/build/Testing/*/*.xml $WORKSPACE/mpi.xml || true" + xunit tools: [CTest(pattern: '*.xml')] + } + cleanup { + cleanWs() + } + } steps { @@ -132,10 +148,11 @@ pipeline $WORKSPACE/ time ninja -j $NP time ninja setup_tests - time ctest -R "all-headers|multigrid/transfer" --output-on-failure -DDESCRIPTION="CI-$JOB_NAME" -j $NP + time ctest -R "all-headers|multigrid/transfer" --output-on-failure -DDESCRIPTION="CI-$JOB_NAME" -j $NP --no-compress-output -T test ''' } } + } } -- 2.39.5