version: '{build}'
environment:
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk9
branches:
  except:
    - gh-pages
install:
  - cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
  - cmd: SET MAVEN_OPTS=-Xmx4g
  - cmd: SET JAVA_OPTS=-Xmx4g
  - cmd: mvn --version
  - cmd: java -version
build_script:
  - mvn --batch-mode post-integration-test -DskipTests
test_script:
  - mvn --batch-mode post-integration-test
cache:
  - C:\Users\appveyor\.m2

version: '{build}'
environment:
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0
branches:
  except:
    - gh-pages
os: Windows Server 2012
install:
  - cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
  - cmd: SET MAVEN_OPTS=-Xmx4g
  - cmd: SET JAVA_OPTS=-Xmx4g
  - cmd: mvn --version
  - cmd: java -version
build_script:
  - mvn --batch-mode post-integration-test -DskipTests
test_script:
  - mvn --batch-mode post-integration-test
cache:
  - C:\Users\appveyor\.m2

Revert "Run Travis CI on Java 9"
Revert "Run Travis CI on Java 9"

This reverts commit 46a8a3d as it doesn't yet seem to work on Travis,
even though https://github.com/appveyor/ci/issues/1186 suggests it.
