You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2017/10/23 10:28:38 UTC

groovy git commit: jdk9 adjustments only for oraclejdk9 env

Repository: groovy
Updated Branches:
  refs/heads/master a6d5b3f9e -> daeba5004


jdk9 adjustments only for oraclejdk9 env


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/daeba500
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/daeba500
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/daeba500

Branch: refs/heads/master
Commit: daeba50047a1b203b48b9471a5faf623f546d6c9
Parents: a6d5b3f
Author: paulk <pa...@asert.com.au>
Authored: Mon Oct 23 20:28:30 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Mon Oct 23 20:28:30 2017 +1000

----------------------------------------------------------------------
 .travis.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/daeba500/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index c81ef2b..0fb9ce5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,10 +26,13 @@ dist: trusty
 
 install: true
 
-# adjust gradle.properties
+# adjust gradle.properties if needed
 before_script:
-  - unset _JAVA_OPTIONS
-  - sed -i 's/org.gradle.jvmargs=.*/org.gradle.jvmargs=-ea -Xmx1G/' gradle.properties
+  - |
+    unset _JAVA_OPTIONS
+    if [ $TRAVIS_JDK_VERSION == "oraclejdk9" ]; then
+      sed -i 's/org.gradle.jvmargs=.*/org.gradle.jvmargs=-ea -Xmx1G/' gradle.properties
+    fi
 
 script: travis_wait 60 ./gradlew test