Add junit test info
This commit is contained in:
@@ -2,5 +2,6 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -4,7 +4,14 @@ pipeline {
|
|||||||
stage('Compile'){
|
stage('Compile'){
|
||||||
steps {
|
steps {
|
||||||
sh "mkdir -p bin"
|
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'){
|
stage('Package'){
|
||||||
|
|||||||
Reference in New Issue
Block a user