Skip to content

Commit

Permalink
Revert "Add test parallelism"
Browse files Browse the repository at this point in the history
Looks like this doesn't work so well on Travis CI.
  • Loading branch information
DanielThomas committed May 18, 2016
1 parent fd86b09 commit e388ace
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main/groovy/nebula/plugin/plugin/NebulaPluginPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,6 @@ class NebulaPluginPlugin implements Plugin<Project> {
maxHeapSize = '256m'
jvmArgs "-XX:MaxPermSize=512m"
jacocoTestReport.executionData += files("$buildDir/jacoco/${task.name}.exec")

if (gradle.startParameter.taskRequests.find { it.args.contains('--debug-jvm') }) {
logger.warn('--debug-jvm was specified, disabling test parallelism for {} task to avoid port binding conflicts', name)
} else {
conventionMapping.maxParallelForks = {
Integer availableProcessors
if (System.getenv('CI')) {
availableProcessors = Runtime.runtime.availableProcessors()
} else {
availableProcessors = Runtime.runtime.availableProcessors() / 2
logger.warn("Reducing the number of maxParallelForks by half ($availableProcessors) to avoid saturating development workstation. Set CI environment variable to bypass this behaviour")
}
availableProcessors
}
}
maxHeapSize = '1g'
forkEvery = 25
}

pluginBundle {
Expand Down

0 comments on commit e388ace

Please sign in to comment.