Dieser Commit ist enthalten in:
Ursprung
5e2d18a5b5
Commit
6113f0146d
25
build.gradle
25
build.gradle
@ -104,4 +104,27 @@ task finalizeProject {
|
|||||||
file(libs + "/" + uberJarName).renameTo(file(libs + "/" + jarName))
|
file(libs + "/" + uberJarName).renameTo(file(libs + "/" + jarName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assemble.finalizedBy(finalizeProject)
|
assemble.finalizedBy(finalizeProject)
|
||||||
|
|
||||||
|
task testOutput {
|
||||||
|
description 'Print Test output'
|
||||||
|
group "Build"
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
for (def file : new File("${buildDir}/test-results/test/").listFiles()) {
|
||||||
|
if (file.isDirectory()) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
def strings = file.readLines()
|
||||||
|
if (strings.get(1).contains("failures=\"0\"")) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
println "Content ${file}:"
|
||||||
|
strings.each {
|
||||||
|
line -> println ": $line"
|
||||||
|
}
|
||||||
|
println ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
test.finalizedBy(testOutput)
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren