Added register task and some fixes for TeamCity (#2785)

This commit is contained in:
LepilkinaElena
2019-03-19 17:25:48 +03:00
committed by GitHub
parent feec5b2cbd
commit d8c1e85025
5 changed files with 190 additions and 21 deletions
@@ -82,6 +82,9 @@ fun getChartOptions(samples: Array<String>): dynamic {
val axisXObject: dynamic = object{}
axisXObject["offset"] = 40
chartOptions["axisX"] = axisXObject
val axisYObject: dynamic = object{}
axisYObject["offset"] = 70
chartOptions["axisY"] = axisYObject
val legendObject: dynamic = object{}
legendObject["legendNames"] = samples
chartOptions["plugins"] = arrayOf(Chartist.plugins.legend(legendObject))
@@ -236,7 +239,7 @@ fun main(args: Array<String>) {
val labels = mutableListOf<String>()
val executionTime = mutableMapOf<String, MutableList<Double?>>()
val compileTime = mutableMapOf<String, MutableList<Double?>>()
val codeSize = mutableMapOf<String, MutableList<Int?>>()
val codeSize = mutableMapOf<String, MutableList<Double?>>()
val bundleSize = mutableListOf<Int?>()
builds.forEach {
@@ -248,7 +251,7 @@ fun main(args: Array<String>) {
}
separateValues(it.executionTime, executionTime) { value -> value.toDouble() }
separateValues(it.compileTime, compileTime) { value -> value.toDouble() }
separateValues(it.codeSize, codeSize) { value -> value.toInt() }
separateValues(it.codeSize, codeSize) { value -> value.toDouble() }
bundleSize.add(it.bundleSize?.toInt())
}