version: 2
jobs:
  jdk6:
    docker:
      - image: openjdk:6-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  jdk7:
    docker:
      - image: openjdk:7-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Pjava7 -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  jdk8:
    docker:
      - image: openjdk:8-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Pjava8 -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  jdk8:
    docker:
      - image: openjdk:9.0.4-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Pjava9 -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  coverage:
    docker:
      - image: openjdk:8-jdk
    steps:
      - checkout
      - run: ./mvnw jacoco:prepare-agent test jacoco:report coveralls:report -Pintegration -Pjava8 -Dnet.bytebuddy.test.ci=true -DrepoToken=$COVERALLS_REPO_TOKEN -pl '!byte-buddy-gradle-plugin'
workflows:
  version: 2
  build_all:
    jobs:
      - jdk6
      - jdk7
      - jdk8
      - coverage:
          requires:
            - jdk6
            - jdk7
            - jdk8

version: 2
jobs:
  jdk6:
    docker:
      - image: openjdk:6-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  jdk7:
    docker:
      - image: openjdk:7-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Pjava7 -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  jdk8:
    docker:
      - image: openjdk:8-jdk
    steps:
      - checkout
      - run: ./mvnw verify -Pintegration -Pjava8 -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
  coverage:
    docker:
      - image: openjdk:8-jdk
    steps:
      - checkout
      - run: ./mvnw jacoco:prepare-agent test jacoco:report coveralls:report -Pintegration -Pjava8 -Dnet.bytebuddy.test.ci=true -DrepoToken=$COVERALLS_REPO_TOKEN -pl '!byte-buddy-gradle-plugin'
workflows:
  version: 2
  build_all:
    jobs:
      - jdk6
      - jdk7
      - jdk8
      - coverage:
          requires:
            - jdk6
            - jdk7
            - jdk8

Remove JDK 9 build from Circle due to Docker image problems.
Remove JDK 9 build from Circle due to Docker image problems.
