-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
E2ETests.kt
63 lines (53 loc) · 1.4 KB
/
E2ETests.kt
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
package tests.buildTypes
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.buildFeatures.PullRequests
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.buildFeatures.pullRequests
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import jetbrains.buildServer.configs.kotlin.triggers.vcs
object E2ETests : BuildType({
name = "E2E tests"
vcs {
root(vcsRoots.KotlinLangOrg)
}
triggers {
vcs {
branchFilter = "+:pull/*"
}
}
steps {
script {
scriptContent = "./scripts/test/up.sh"
}
script {
scriptContent = "./scripts/test/run.sh"
}
script {
scriptContent = "./scripts/test/stop.sh"
}
}
requirements {
exists("docker.server.version")
contains("docker.server.osType", "linux")
}
features {
/*commitStatusPublisher {
vcsRootExtId = "${vcsRoots.KotlinLangOrg.id}"
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%github.oauth%"
}
}
}*/
pullRequests {
vcsRootExtId = "${vcsRoots.KotlinLangOrg.id}"
provider = github {
authType = token {
token = "%github.oauth%"
}
filterAuthorRole = PullRequests.GitHubRoleFilter.MEMBER_OR_COLLABORATOR
}
}
}
})