Skip to content

Commit

Permalink
Reinstate 2.7.3 coverage to tests.
Browse files Browse the repository at this point in the history
Remove 2.3 coverage.
Set maxParallelForks to always 1
gradle#142

Signed-off-by: marracuene <[email protected]>
  • Loading branch information
marracuene committed Jul 25, 2020
1 parent f09d2e6 commit 47ba3a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class TestSetupPlugin : Plugin<Project> {

private
fun determineMaxParallelForks(): Int {
return if ((Runtime.getRuntime().availableProcessors() / 2) < 1) 1 else (Runtime.getRuntime().availableProcessors() / 2)
// return if ((Runtime.getRuntime().availableProcessors() / 2) < 1) 1 else (Runtime.getRuntime().availableProcessors() / 2)
return 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,6 @@ class PlayRoutesPluginIntegrationTest extends AbstractIntegrationTest {
findFile(compiledRouterFiles, 'Routes.scala')
}

def "fails build if injected routes generator was configured for Play version < 2.4.0"() {
given:
buildFile << """
play {
platform {
playVersion = '2.3.0'
}
injectedRoutesGenerator = true
}
"""

when:
BuildResult result = buildAndFail(ROUTES_COMPILE_TASK_NAME)

then:
result.output.contains('Injected routers are only supported in Play 2.4 or newer.')
}

static String getRoutes() {
"""
GET / controllers.HomeController.index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ final class PlayCoverage {

public static final VersionNumber DEFAULT = VersionNumber.parse(DEFAULT_PLAY_VERSION)
public static final List<VersionNumber> ALL = [
//VersionNumber.parse('2.3.10'), NO LONGER SUPPORTED
VersionNumber.parse('2.4.11'),
VersionNumber.parse('2.5.19'),
//VersionNumber.parse('2.7.3'),
VersionNumber.parse('2.7.3'),
// Not supported yet
// VersionNumber.parse('2.8.0'),
DEFAULT
Expand Down

0 comments on commit 47ba3a1

Please sign in to comment.