forked from rindugula/ls-shipfast-acceptance-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (61 loc) · 1.55 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
68
69
70
71
72
buildscript {
ext {
junitVersion = '4.11'
assertjVersion = '3.3.0'
cucumberVersion = '1.2.4'
seleniumVersion = '2.53.0'
htmlunitVersion = '2.52.0'
}
repositories {
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'docker'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
testCompile "junit:junit:$junitVersion"
testCompile "org.assertj:assertj-core:$assertjVersion"
testCompile "info.cukes:cucumber-java:$cucumberVersion"
testCompile "info.cukes:cucumber-junit:$cucumberVersion"
compile "org.seleniumhq.selenium:selenium-java:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-htmlunit-driver:$htmlunitVersion"
}
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "cucumber.api.cli.Main"
classpath = configurations.testRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty', '--glue', 'com.shipfast.test', 'src/test/resources']
}
}
}
task startServices(type: Exec, group: 'docker') {
// Define services
commandLine 'echo', 'TBD'
}
task stopServices(group: 'docker') << {
// Clean-up services
}
cucumber.dependsOn startServices
cucumber.finalizedBy stopServices
task createWrapper(type: Wrapper) {
gradleVersion = '2.9'
}