language: java
jdk:
  - oraclejdk8
#  blacklist
branches:
  only:
    - master
before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
script:
   - ./gradlew clean asciidoc
after_success:
  - '[ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && ./deploy_ghpages.sh'

language: java
jdk:
  - oraclejdk8
#  blacklist
branches:
  except:
    - gh-pages
before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
script:
   - ./gradlew clean asciidoc
after_success:
  - '[ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && ./deploy_ghpages.sh'

Revert "Travis fix to clear exceptions."
Revert "Travis fix to clear exceptions."
