
dist: precise

# Don't use the Travis Container-Based Infrastructure
sudo: true

language: java

jdk:
  - oraclejdk7
  - oraclejdk8

script:
  - ./gradlew -S clean build functionalTest

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/


# Don't use the Travis Container-Based Infrastructure
sudo: true

language: java

matrix:
  include:
    - os: linux
      dist: precise
      jdk: oraclejdk7
    - os: linux
      dist: precise
      jdk: oraclejdk8
    - os: linux
      dist: trusty
      jdk: oraclejdk8
      install: ./gradlew wrapper --gradle-version=4.5 && ./gradlew --version && jdk_switcher use oraclejdk9

script:
  - ./gradlew -S clean build functionalTest

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

Add running functional tests using Java 9 to the build matrix
Add running functional tests using Java 9 to the build matrix

To build and run tests with Java 9 requires updating Gradle to 4.5
this is done by the install task using Java 8 before switching to
Java 9.
