From ef8952875066bf72c69b688db5092571c5cc3d97 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Thu, 12 Dec 2024 20:28:12 +0200 Subject: [PATCH] add more tests to Jenkinsfile --- Jenkinsfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f98c1d..fe36c5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,16 +7,30 @@ pipeline { git url: 'http://10.1.1.1:3000/hasslesstech/shmuliar-sp-kr-lab4.git' } } - + stage('Build') { steps { - sh 'make -j$(nproc) test' + sh 'make -j$(nproc) build test' } } stage('Test') { steps { - sh './tester' + sh './tester test/testcases_sort_official' + sh './tester test/testcases_sort_custom' + + script { + try { + sh './tester test/testcases_sort_wrong' + error("Wrong test indicates success!") + } catch (Exception e) {} + } + } + } + + stage('Clean Up') { + steps { + sh 'make clean' } } }