mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Handle the situation where no tasks ran.
This commit is contained in:
parent
d7c8eec6a1
commit
91f21c4edb
1 changed files with 3 additions and 1 deletions
|
@ -76,6 +76,7 @@ class BuildListeners : IBuildListener, IBuildReportContributor {
|
||||||
fun col3(s: String) = String.format(" %1\$-8s", s)
|
fun col3(s: String) = String.format(" %1\$-8s", s)
|
||||||
|
|
||||||
// Only print the build report if there is more than one project and at least one of them failed
|
// Only print the build report if there is more than one project and at least one of them failed
|
||||||
|
if (timings.any()) {
|
||||||
// if (timings.size > 1 && hasFailures) {
|
// if (timings.size > 1 && hasFailures) {
|
||||||
val line = listOf(col1("Project"), col2("Build status"), col3("Time"))
|
val line = listOf(col1("Project"), col2("Build status"), col3("Time"))
|
||||||
.joinToString(AsciiArt.verticalBar)
|
.joinToString(AsciiArt.verticalBar)
|
||||||
|
@ -84,11 +85,12 @@ class BuildListeners : IBuildListener, IBuildReportContributor {
|
||||||
val projectName = pair.first.name
|
val projectName = pair.first.name
|
||||||
val cl = listOf(col1(projectName), col2(pair.second.toString()),
|
val cl = listOf(col1(projectName), col2(pair.second.toString()),
|
||||||
col3(formatMillisLeft(projectInfos[projectName]!!.durationMillis, 8)))
|
col3(formatMillisLeft(projectInfos[projectName]!!.durationMillis, 8)))
|
||||||
.joinToString(AsciiArt.verticalBar)
|
.joinToString(AsciiArt.verticalBar)
|
||||||
log(1, " " + AsciiArt.verticalBar + " " + cl + " " + AsciiArt.verticalBar)
|
log(1, " " + AsciiArt.verticalBar + " " + cl + " " + AsciiArt.verticalBar)
|
||||||
}
|
}
|
||||||
log(1, " " + AsciiArt.lowerBox(line.length))
|
log(1, " " + AsciiArt.lowerBox(line.length))
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
// BUILD SUCCESSFUL / FAILED message
|
// BUILD SUCCESSFUL / FAILED message
|
||||||
val message = StringBuilder(if (args.parallel) "PARALLEL " else "")
|
val message = StringBuilder(if (args.parallel) "PARALLEL " else "")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue