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

18
Jenkinsfile vendored
View File

@ -10,13 +10,27 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
sh 'make -j$(nproc) test' sh 'make -j$(nproc) build test'
} }
} }
stage('Test') { stage('Test') {
steps { 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'
} }
} }
} }