Add junit test info

This commit is contained in:
Flare Microsystems
2024-11-08 17:22:07 -08:00
parent 1c978cd8d3
commit acb9806bcf
2 changed files with 9 additions and 1 deletions

9
Jenkinsfile vendored
View File

@@ -4,7 +4,14 @@ pipeline {
stage('Compile'){
steps {
sh "mkdir -p bin"
sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -cp ./Lib/lwjgl.jar:./Lib/jinput.jar:./Lib/lwjgl_util.jar -d bin \$(find ./src/* | grep .java)"
sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -d bin \$(find ./src/* | grep .java)"
}
}
stage('Test'){
steps {
sh '''
find bin/test -name "*.class" | sed \'s/bin\\///\' | sed \'s/\\.class//\' | tr \'/\' \'.\' | xargs -I {} java -cp ./bin:/tool/junit4/* org.junit.runner.JUnitCore {}
'''
}
}
stage('Package'){