add more tests to Jenkinsfile

This commit is contained in:
ІО-23 Шмуляр Олег 2024-12-12 20:28:12 +02:00
parent 40e471f1a2
commit ef89528750
1 changed files with 17 additions and 3 deletions

20
Jenkinsfile vendored
View File

@ -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'
}
}
}