#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
env:
  - GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=256m"
script:
  - ./gradlew build jacocoTestReport
after_success:
  - bash <(curl -s https://codecov.io/bash)
deploy:
  provider: script
  script: scripts/tag-release.sh && scripts/publish-site-starter.sh && scripts/publish-docker-image.sh
  skip_cleanup: true
  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: required
services:
  - docker
dist: trusty
language: java
jdk:
  - oraclejdk8
  - openjdk8
env:
  - GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=256m"
script:
  - ./gradlew build jacocoTestReport
after_success:
  - bash <(curl -s https://codecov.io/bash)
deploy:
  provider: script
  script: scripts/tag-release.sh && scripts/publish-site-starter.sh && scripts/publish-docker-image.sh
  skip_cleanup: true
  on:
    branch: master
    jdk: oraclejdk8

Enable docker in build to publish image
Enable docker in build to publish image
