language: java
jdk:
  - oraclejdk8
before_install:
  - if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
  - if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
install: "mvn install -DskipTests=true"
script: "mvn -e clean test jacoco:report coveralls:report"
deploy:
  -
    provider: script
    script: .travis/deploy.sh
    skip_cleanup: true
    on:
      repo: Mercateo/rest-schemagen-spring
      branch: master
      jdk: oraclejdk8
  -
    provider: script
    script: .travis/deploy.sh
    skip_cleanup: true
    on:
      repo: Mercateo/rest-schemagen-spring
      tags: true
      jdk: oraclejdk8

language: java
jdk:
  - openjdk8
before_install:
  - if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
  - if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
install: "mvn install -DskipTests=true"
script: "mvn -e clean test jacoco:report coveralls:report"
deploy:
  -
    provider: script
    script: .travis/deploy.sh
    skip_cleanup: true
    on:
      repo: Mercateo/rest-schemagen-spring
      branch: master
      jdk: openjdk8
  -
    provider: script
    script: .travis/deploy.sh
    skip_cleanup: true
    on:
      repo: Mercateo/rest-schemagen-spring
      tags: true
      jdk: openjdk8

Use openjdk8 instead of oraclejdk8
Use openjdk8 instead of oraclejdk8
