Skip to content
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.

palantir/gradle-circle-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Circle Style

A plugin for Gradle that summarizes failed Gradle builds in CircleCI, with special handling for Checkstyle and FindBugs failures.

Gradle plugins page CircleCI Apache 2.0 License

Quickstart

Add the following to your project's top-level build.gradle file:

plugins {
  id 'com.palantir.circle.style' version '1.1.2'
}

And now your CircleCI builds will fail with nice summaries:

CHECKSTYLE — 1 FAILURE

Details

This plugin is enabled by the CIRCLE_TEST_REPORTS environment variable, set automatically on CircleCI builds. It then automatically enables XML output for Checkstyle and FindBugs plugins, and adds a finalizer task that collates their results (and any other Gradle build step failures) using the JUnit XML output that CircleCI expects.

Note that FindBugs does not support generating both HTML and XML output, so HTML output will be disabled on CircleCI builds. (Checkstyle does not have this limitation.)