Added more JDK for travis build.
Only upload snapshot from oracle jdk 8.
@@ -3,6 +3,13 @@ language: java
sudo: required
jdk:
- oraclejdk8
+- oraclejdk9
+- oraclejdk10
+- oraclejdk-ea
+- openjdk8
+- openjdk9
+- openjdk10
+- openjdk11
before_script:
- wget "https://github.com/nats-io/gnatsd/releases/download/$gnatsd_version/gnatsd-$gnatsd_version-linux-amd64.zip"
-O tmp.zip
@@ -24,7 +31,7 @@ cache:
- "$HOME/.gradle/wrapper/"
after_success:
- "./gradlew test jacocoTestReport coveralls"
-- test ${TRAVIS_BRANCH} != 'master' && "./gradlew uploadArchives" # Disable master for now, it fails due to ip address issues
+- test ${TRAVIS_BRANCH} != 'master' && test ${TRAVIS_JDK_VERSION} == 'ORACLE JDK 8' && "./gradlew uploadArchives" # Disable master for now, it fails due to ip address issues
#Disable for now, upload archives fails because of IP address changes - "test ${TRAVIS_PULL_REQUEST} != 'true' && test ${TRAVIS_BRANCH} = 'master' && ./gradlew closeAndReleaseRepository"
env:
global:
