dist: xenial
#https://docs.travis-ci.com/user/languages/java/#Caching
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/
matrix:
  include:
    - stage: build
      language: java
      jdk: openjdk11
      script:
        - "./gradlew -i check jacocoRootReport"
      after_success:
        - bash <(curl -s https://codecov.io/bash)
      cache:
        directories:
          - "$HOME/.m2"
          - "$HOME/.gradle"
    - stage: tag
      if: branch = master AND type != "pull_request"
      script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./release-tag.sh; fi'


dist: xenial
#https://docs.travis-ci.com/user/languages/java/#Caching
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/
matrix:
  include:
    - stage: build
      language: java
      jdk: openjdk11
      script:
        - "./gradlew -i check jacocoRootReport"
      after_success:
        - bash <(curl -s https://codecov.io/bash)
      cache:
        directories:
          - "$HOME/.m2"
          - "$HOME/.gradle"


Remove release tagging from Travis
Remove release tagging from Travis
