-
Notifications
You must be signed in to change notification settings - Fork 6
/
.space.kts
69 lines (56 loc) · 1.69 KB
/
.space.kts
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
68
69
val container = "registry.jetbrains.team/p/ki/containers-ci/ci-corretto-17-firefox:1.0.1"
job("KInference / Build") {
container("Build With Gradle", container) {
kotlinScript { api ->
api.gradlew("assemble", "--parallel", "--console=plain", "--no-daemon")
}
}
}
job("KInference / Test / JVM") {
container("JVM Tests", container) {
kotlinScript { api ->
api.gradlew("jvmTest", "--parallel", "--console=plain", "-Pci", "--no-daemon")
}
}
}
job("KInference / Test / JS IR") {
container("JS IR Tests", container) {
shellScript {
content = xvfbRun("./gradlew jsTest --parallel --console=plain -Pci --no-daemon")
}
}
}
job("KInference / Heavy Test / JVM") {
container("JVM Heavy Tests", container) {
addAwsKeys()
kotlinScript { api ->
api.gradlew("jvmHeavyTest", "--console=plain", "-Pci", "--no-daemon")
}
}
}
job("KInference / Heavy Test / JS IR") {
container("JS IR Heavy Tests", container) {
addAwsKeys()
shellScript {
content = xvfbRun("./gradlew jsHeavyTest --console=plain -Pci --no-daemon")
}
}
}
job("KInference / Release") {
startOn {
gitPush {
enabled = false
}
}
container("Release", container) {
addAwsKeys()
kotlinScript { api ->
api.gradlew("publish", "--parallel", "--console=plain", "--no-daemon")
}
}
}
fun Container.addAwsKeys() {
env["AWS_ACCESS_KEY"] = "{{ project:aws_access_key }}"
env["AWS_SECRET_KEY"] = "{{ project:aws_secret_key }}"
}
fun xvfbRun(command: String): String = "xvfb-run --auto-servernum $command"