language: java

sudo: false
dist: trusty

before_install:
  - unset _JAVA_OPTIONS

install: echo "The default Travis install script is being skipped!"

matrix:
  include:
    # Java 9
    - jdk: oraclejdk9
      env: TARGET='-Pjava9'
    # Java 10
    - env: TARGET='-Pjava10'
      jdk: oraclejdk10
    # Java 11
    - env: TARGET='-Pjava11'
      jdk: oraclejdk11
    # Java 12
    - env: TARGET='-Pjava11'
      jdk: openjdk-ea
      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

install: echo "The default Travis install script is being skipped!"

matrix:
  include:
    # Java 9
    - jdk: oraclejdk9
      env: TARGET='-Pjava9'
    # Java 10
    - env: TARGET='-Pjava10'
      jdk: oraclejdk10
    # Java 11
    - env: TARGET='-Pjava10'
      jdk: oraclejdk11
    # Java 12
    - env: TARGET='-Pjava10'
      jdk: openjdk-ea

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'

Use Java 10 target due to error in previous Byte Buddy version that is used by build plugin.
Use Java 10 target due to error in previous Byte Buddy version that is used by build plugin.
