-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (58 loc) · 1.54 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
id 'java'
id 'groovy'
id 'io.github.platan.tests-execution-chart'
// id 'net.rdrei.android.buildtimetracker' version "0.11.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'org.apache.commons:commons-csv:1.13.0'
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation 'org.spockframework:spock-core:2.4-M4-groovy-4.0'
}
test {
useJUnitPlatform()
testLogging {
info.events = ["passed", "failed", "skipped"]
}
}
createTestsExecutionReport {
formats {
json {
enabled = false
}
mermaid {
enabled = false
}
}
shiftTimestampsToStartOfDay = true
components {
suites {
enabled = Boolean.parseBoolean(project.properties.getOrDefault('displaySuites', 'false') as String)
}
}
}
tasks.register('stats', JavaExec) {
if (!project.hasProperty('args')) {
throw new RuntimeException("Missing property `args`. Set it using -Pargs='-stats_file myfile -task_name mytask'.")
}
description = "Show task stats based on data reported by buildtimetracker"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'Stats'
argsString(project.property('args').toString())
}
//buildtimetracker {
// reporters {
// csv {
// append true
// header true
// output ".build-time.csv"
// }
// summary {
// barstyle "none"
// }
// }
//}