#before_cache:
#  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
#  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    #- $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8
  - openjdk8
services:
  - docker
before_install:
  - etc/scripts/update-zoneinfo.sh
script:
  - ./gradlew build jacocoTestReport
after_success:
  - bash <(curl -s https://codecov.io/bash)
deploy:
  provider: script
  script: ./gradlew -Prelease.customUsername=$GIT_USER -Prelease.customPassword=$GIT_PASSWORD -Prelease.disableChecks -Prelease.pushTagsOnly release bintrayUpload
  on:
    branch: master
    jdk: oraclejdk8

#before_cache:
#  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
#  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    #- $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8
  - openjdk8
services:
  - docker
#before_install:
#  - etc/scripts/update-zoneinfo.sh
script:
  - ./gradlew build jacocoTestReport
after_success:
  - bash <(curl -s https://codecov.io/bash)
deploy:
  provider: script
  script: ./gradlew -Prelease.customUsername=$GIT_USER -Prelease.customPassword=$GIT_PASSWORD -Prelease.disableChecks -Prelease.pushTagsOnly release bintrayUpload
  on:
    branch: master
    jdk: oraclejdk8

Disable automated check on zoneinfo as it may be blocking releases with false positives
Disable automated check on zoneinfo as it may be blocking releases with false positives
