language: java

jdk:
  - oraclejdk8
  - openjdk7

sudo: false

cache:
  directories:
  - $HOME/.gradle

before_install:
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
  - "export DISPLAY=:99.0"

deploy:
  provider: script
  script: ./gradlew bintrayUpload
  skip_cleanup: true
  on:
    branch: master
    tags: true

language: java

jdk:
  - oraclejdk8
  - openjdk7

sudo: false

cache:
  directories:
  - $HOME/.gradle

before_install:
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
  - "export DISPLAY=:99.0"

deploy:
  provider: script
  script: ./gradlew bintrayUpload
  skip_cleanup: true
  on:
    branch: master
    tags: true
    jdk: oraclejdk8

Deploy from the JDK8 build only
Deploy from the JDK8 build only