language: node_js
node_js: 7
addons:
  ssh_known_hosts: kotlin.link
  apt:
    packages:
      - oracle-java8-installer
      - oracle-java8-set-default
before_script:
  - npm test
  - openssl aes-256-cbc -K $encrypted_83630750896a_key -iv $encrypted_83630750896a_iv -in deploy@morty.enc -out ~/.ssh/deploy@morty -d
  - chmod 600 ~/.ssh/deploy@morty
  - eval "$(ssh-agent -s)"
  - ssh-add ~/.ssh/deploy@morty
script:
  - bash ./deploy.sh
cache:
  yarn: true
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

language: node_js
node_js: 7
addons:
  ssh_known_hosts: kotlin.link
  apt:
    packages:
      - oracle-java8-installer
      - oracle-java8-set-default
before_script:
  - npm test
  - openssl aes-256-cbc -K $encrypted_83630750896a_key -iv $encrypted_83630750896a_iv -in deploy@morty.enc -out ~/.ssh/deploy@morty -d
  - chmod 600 ~/.ssh/deploy@morty
  - eval "$(ssh-agent -s)"
  - ssh-add ~/.ssh/deploy@morty
script:
  - source /etc/profile.d/jdk.sh
  - bash ./deploy.sh
cache:
  yarn: true
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

Set java 8 to default.
Set java 8 to default.
