language: java

sudo: false
dist: trusty

before_install:
  - unset _JAVA_OPTIONS
  - wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh

matrix:
  include:
    # Java 9
    - jdk: oraclejdk9
      env: JDK='JDK 9' TARGET='-Pjava9'
      install: echo "The default Travis install script is being skipped!"
    # Java 10
    - env: JDK='JDK 10' TARGET='-Pjava10'
      install: . ./install-jdk.sh -F 10 -L GPL
    # Java 11
    - env: JDK='JDK 11' TARGET='-Pjava10'
      install: . ./install-jdk.sh -F 11 -L BCL
      script:
        - ./mvnw install ${TARGET} -DskipTests=true -Dmaven.javadoc.skip=true -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
        - ./mvnw verify ${TARGET} -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'

script:
  - ./mvnw install ${TARGET} -DskipTests=true -Dmaven.javadoc.skip=true -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  - ./mvnw jacoco:prepare-agent verify jacoco:report ${TARGET} -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'

language: java

sudo: false
dist: trusty

before_install:
  - unset _JAVA_OPTIONS
  - wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh

matrix:
  include:
    # Java 9
    - jdk: oraclejdk9
      env: JDK='JDK 9' TARGET='-Pjava9'
      install: echo "The default Travis install script is being skipped!"
    # Java 10
    - env: JDK='JDK 10' TARGET='-Pjava10'
      install: . ./install-jdk.sh -F 10 -L GPL
    # Java 11
    - env: JDK='JDK 11' TARGET='-Pjava10'
      install: . ./install-jdk.sh -F 11 -L BCL
      script:
        - ./mvnw install ${TARGET} -DskipTests=true -Dmaven.javadoc.skip=true -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
        - ./mvnw verify ${TARGET} -Dnet.bytebuddy.test.ci=true -Dnet.bytebuddy.experimental=true -pl '!byte-buddy-gradle-plugin'

script:
  - ./mvnw install ${TARGET} -DskipTests=true -Dmaven.javadoc.skip=true -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  - ./mvnw jacoco:prepare-agent verify jacoco:report ${TARGET} -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'

Add experimental switch for 11 build.
Add experimental switch for 11 build.
