machine:
  java:
    version: oraclejdk8
test:
  override:
    - export TERM="dumb"
    - if [ -e ./gradlew ]; then ./gradlew build;else gradle build;fi
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
    - mkdir -p $CIRCLE_TEST_REPORTS/jacoco/
    - cp build/reports/jacoco/test/html/ $CIRCLE_TEST_REPORTS/jacoco/
    - mkdir -p $CIRCLE_TEST_REPORTS/checkstyle/
    - cp build/reports/checkstyle/*.html $CIRCLE_TEST_REPORTS/checkstyle/
    - cp build/libs/*.jar $CIRCLE_ARTIFACTS


machine:
  java:
    version: oraclejdk8
test:
  override:
    - export TERM="dumb"
    - if [ -e ./gradlew ]; then ./gradlew build;else gradle build;fi
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
    - mkdir -p $CIRCLE_TEST_REPORTS/jacoco/
    - cp -R build/reports/jacoco/test/html/ $CIRCLE_TEST_REPORTS/jacoco/
    - mkdir -p $CIRCLE_TEST_REPORTS/checkstyle/
    - cp build/reports/checkstyle/*.html $CIRCLE_TEST_REPORTS/checkstyle/
    - cp build/libs/*.jar $CIRCLE_ARTIFACTS


Fix copy of jacoco report
Fix copy of jacoco report
