cache:
  directories:
    - $HOME/.gradle
language: java
jdk:
  - oraclejdk8
sudo: false
deploy:
  provider: script
  script: scripts/install.sh
  on:
    branch: master

cache:
  directories:
    - $HOME/.gradle
language: java
jdk:
  - oraclejdk8
sudo: false
deploy:
  provider: script
  script: scripts/install.sh
  on:
    branch: ^release/.*

Deploy on release branch to support testing before final merge to master
Deploy on release branch to support testing before final merge to master
