machine:
  java:
    version: oraclejdk8
  environment:
    TERM: dumb
    GRADLE_OPTS: -Xmx1024m

dependencies:
  override:
    - ./gradlew downloadDependencies

test:
  override:
    - ./gradlew check -Dscan
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

general:
  branches:
    ignore:
      - gh-pages