language: java
jdk:
  - openjdk7
  - oraclejdk7
  - oraclejdk8
install: true
script:
    - "./gradlew clean"
    - "if [[ -n $TRAVIS_TAG ]]; then
          ./gradlew ship;
      else
          ./gradlew build;
      fi"
cache:
  gradle: true
  directories:
  - "$HOME/.gradle/caches"
  - "$HOME/.gradle/wrapper"
branches:
  only:
  - master
  - devel

language: java
jdk:
  - openjdk7
  - oraclejdk7
  - oraclejdk8
install: true
script:
    - "./gradlew clean"
    - "if [[ -n $TRAVIS_TAG ]]; then
          ./gradlew ship;
      else
          ./gradlew build;
      fi"
cache:
  gradle: true
  directories:
  - "$HOME/.gradle/caches"
  - "$HOME/.gradle/wrapper"
branches:
  only:
  - master
  - devel
  - /^\d+\.\d+\.\d+(-SNAPSHOT)?$/ # ensure builds are run on tags which have versions as branch names
Allow for builds to be triggered on tag creation
Allow for builds to be triggered on tag creation
