machine:
  services:
    - docker
  java:
    version: oraclejdk8

dependencies:
  cache_directories:
    # Gradle is very advanced now and we try to rely on its management of internal state for faster
    # builds. If this causes flaky builds, we can remove this caching.
    - .gradle
  override:
    # Running tests during the dependencies phase is the only way to have CircleCI cache everything
    # gradle downloads.
    - ./gradlew continuousTest

test:
  override:
    - echo "Test results are found in dependencies phase."
  post:
    # From https://circleci.com/docs/1.0/test-metadata/#gradle-junit-results
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

machine:
  services:
    - docker
  java:
    version: oraclejdk8

dependencies:
  cache_directories:
    # Gradle is very advanced now and we try to rely on its management of internal state for faster
    # builds. If this causes flaky builds, we can remove this caching.
    - .gradle
  override:
    # Running tests during the dependencies phase is the only way to have CircleCI cache everything
    # gradle downloads.
    - ./gradlew continuousTest --stacktrace

test:
  override:
    - echo "Test results are found in dependencies phase."
  post:
    # From https://circleci.com/docs/1.0/test-metadata/#gradle-junit-results
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

Add stacktrace to gradle failures.
Add stacktrace to gradle failures.
