Skip to content

Commit

Permalink
GEODE-5488 - Enable docker for all of our gradle tests (apache#2215)
Browse files Browse the repository at this point in the history
Integration, Performance, UI, Upgrade, Distributed tests
will all use the dockerized-gradle-plugin as the test executor when
enabled via gradle property.

Co-authored-by: Dick Cavender <[email protected]>
Co-authored-by: Patrick Rhomberg <[email protected]>
Co-authored-by: Robert Houghton <[email protected]>
  • Loading branch information
4 people authored and jake-at-work committed Jul 27, 2018
1 parent be6d4ca commit 9902342
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 165 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,12 @@ if (name == 'geode') {
ext.scriptDir = 'gradle'
}

if (project.hasProperty('parallelDunit')) {
def pwd = System.getenv('PWD')
def geodeDir = new File(pwd).getCanonicalPath()
ext.dunitDockerVolumes = ["${geodeDir}":geodeDir]
}

apply from: "${scriptDir}/utilities.gradle"
apply from: "${scriptDir}/java.gradle"
apply from: "${scriptDir}/dependency-resolution.gradle"
apply from: "${scriptDir}/test.gradle"
apply from: "${scriptDir}/test-by-category.gradle"
apply from: "${scriptDir}/publish.gradle"
apply from: "${scriptDir}/code-analysis.gradle"
apply from: "${scriptDir}/sonar.gradle"
Expand Down
159 changes: 0 additions & 159 deletions ci/scripts/test-run.sh

This file was deleted.

11 changes: 11 additions & 0 deletions gradle/docker.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
* The default is 'root'.
*/


if (project.hasProperty('parallelDunit')) {
def pwd = System.getenv('PWD')
def geodeDir = new File(pwd).getCanonicalPath()
ext.dunitDockerVolumes = ["${geodeDir}":geodeDir]
}

def dockerConfig = {
maxParallelForks = dunitParallelForks.toInteger()

Expand Down Expand Up @@ -110,5 +117,9 @@ subprojects {
distributedTest.configure(dockerConfig)
upgradeTest.configure(dockerConfig)
repeatTest.configure(dockerConfig)
integrationTest.configure(dockerConfig)
// ACCEPTANCE TEST NEEDS DOCKER-COMPOSE TO WORK WITHIN DOCKER FIRST
// acceptanceTest.configure(dockerConfig)
uiTest.configure(dockerConfig)
}
}
Loading

0 comments on commit 9902342

Please sign in to comment.