language: java

sudo: false

install: true

services:
  - docker

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/"

script:
- "./gradlew test jacocoJunit5TestReport jar acceptanceTest --console=plain"

after_success:
- bash <(curl -s https://codecov.io/bash)
- test "$TRAVIS_BRANCH" = "master" && sh .travis/deploy_heroku.sh

language: java

sudo: false

install: true

services:
  - docker

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/"

jobs:
  include:
    - stage: test
      script: ./gradlew test jacocoTestReport --console=plain
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - stage: acceptance test
      script: ./gradlew jar acceptanceTest --console=plain
    - stage: deploy
      script: ./gradlew jar --console=plain
      after_success:
        - test "$TRAVIS_BRANCH" = "master" && sh .travis/deploy_heroku.sh

Break down single script command into a pipeline on CI
Break down single script command into a pipeline on CI
