language: node_js
node_js:
  - "7"
cache:
  yarn: true
  directories:
    - node_modules # NPM packages
    - elm-stuff # Elm packages
    - tests/elm-stuff # Elm testing packages
install:
  - npm install -g elm
  - npm install -y
  - elm-package install -y
script: ./run-tests.sh
after_success:
  - npm run-script build
  - surge --project ./dist --domain the-deploy-button-acceptance.surge.sh

language: node_js
node_js:
  - "7"
addons:
  apt:
    packages:
      - oracle-java8-installer
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  yarn: true
  directories:
    - node_modules # NPM packages
    - elm-stuff # Elm packages
    - tests/elm-stuff # Elm testing packages
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
install:
  - npm install -g elm
  - npm install -y
  - elm-package install -y
script: ./run-tests.sh
after_success:
  - npm run-script build
  - surge --project ./dist --domain the-deploy-button-acceptance.surge.sh

Upgrade Java and cache Gradle cache on TravisCI.
Upgrade Java and cache Gradle cache on TravisCI.
