language: java
sudo: required
install: true
jdk: openjdk11
script: ./travis.sh
dist: trusty

branches:
  except:
  - /^dogfood\/.*$/
  - public_master

env:
  - TARGET=BUILD
  - TARGET=WEB_TESTS

matrix:
  fast_finish: true

cache:
  directories:
    - $HOME/.sonar
    - $HOME/jvm
    - $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/
  - rm -fr $HOME/.gradle/caches/*/fileHashes/
  - rm -fr $HOME/.gradle/caches/*/scripts/

notifications:
  email: false
  webhooks:
    - secure: "CrwnSt40WNegJOkgDOaCwUwP9fCgx68pYQWtcZnj4+bRF7kFuFI+EUFuf7G29oPOf9CjmFVvZ+mS/ZJ9AqtjfWh/Q9f4Zsv9BBfOmTgUcidYp8+hQljeesEXwi2Mqfa2JeRysje4xu2p8b52h+apbbQ2Y2FQsP4uwmj1LEpP32U="
  on_start: always