sudo: false
language: java
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk7
cache:
  directories:
    - "$HOME/.m2/repository"
before_cache:
  - rm -rf $HOME/.m2/repository/org/joda/money
# install
install:
  - mvn --version
script:
  - mvn install -e -B
after_success:
  - if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml; fi
# secure keys for GITHUB_TOKEN
env:
  global:
  - secure: RkVwVb42aCiC2WHf1vuKZizw7HB3L0WLA3Sk3uI/doCj8UBI4gahoduClPFJKAs8xTgRFijUXDPtBEzOmVYaverwX2K62Ui0ddhhXWsk+U4bWHVkhJ/QEs07Z0ddBhbEv4TicFhNAlGKezSMIMfFpfW2b2JrjWDVO6Exj3ndUCQ=

sudo: false
language: java
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk7
cache:
  directories:
    - "$HOME/.m2/repository"
before_cache:
  - rm -rf $HOME/.m2/repository/org/joda/money
# install
install:
  - mvn --version
script:
  - mvn install site -e -B
after_success:
  - if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml; fi
# secure keys for GITHUB_TOKEN
env:
  global:
  - secure: RkVwVb42aCiC2WHf1vuKZizw7HB3L0WLA3Sk3uI/doCj8UBI4gahoduClPFJKAs8xTgRFijUXDPtBEzOmVYaverwX2K62Ui0ddhhXWsk+U4bWHVkhJ/QEs07Z0ddBhbEv4TicFhNAlGKezSMIMfFpfW2b2JrjWDVO6Exj3ndUCQ=

Test site build in Travis
Test site build in Travis

Avoid unpleasant surprises when releasing
