language: java
jdk: oraclejdk8
script:
  - ./gradlew build
  - ./gradlew shadow
  - java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar --help
  - java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/test/.*,.*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml
  - ./gradlew detektCheck

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/

language: java
jdk: oraclejdk8
script:
  - ./gradlew build
  - ./gradlew shadow
  - java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar --help
  - java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/test/.*,.*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml,./reports/failfast.yml
  - ./gradlew detektCheck

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/

Use failfast configuration in CI
Use failfast configuration in CI
