Skip to content

Commit 5e3bbda

Browse files
authored
Merge pull request #1508 from grails/ciSpecificBuild
Replace isTravisBuild with isCiBuild
2 parents 07965b1 + 3f17c94 commit 5e3bbda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ buildscript {
1010
}
1111

1212
ext {
13-
isTravisBuild = System.getenv().get("TRAVIS") == 'true'
1413
// overall project version
15-
isCiBuild = project.hasProperty("isCiBuild")
14+
isCiBuild = System.getenv().get("TRAVIS") == 'true' || System.getenv().get("CI") as Boolean
1615
isSnapshot = project.projectVersion.endsWith("-SNAPSHOT")
1716
isReleaseVersion = !isSnapshot
1817

@@ -163,7 +162,7 @@ subprojects {
163162
testLogging {
164163
exceptionFormat ='full'
165164
}
166-
if (isTravisBuild) {
165+
if (isCiBuild) {
167166
maxParallelForks = 2
168167
jvmArgs = ['-server', '-Xmx1024M']
169168
forkEvery = 20

0 commit comments

Comments
 (0)