Skip to content

Commit

Permalink
Added Coveralls and Cobertura to measure and visualize code analysis …
Browse files Browse the repository at this point in the history
…results.
  • Loading branch information
lgentsch committed Nov 15, 2015
1 parent d783696 commit 0b6b469
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: groovy
sudo: false
script: gradle build

after_success:
- ./gradlew cobertura coveralls
14 changes: 11 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ buildscript {
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.2.7.RELEASE')
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
}
}

plugins {
id "net.saliman.cobertura" version "2.2.8"
}

apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'

configurations { providedRuntime }

version = 1.0
description = 'Little Spring Boot project to play around.'
buildDir = 'target'

repositories { mavenCentral() }

Expand Down Expand Up @@ -75,3 +78,8 @@ check {
'allTests'
]
}

cobertura {
coverageSourceDirs = sourceSets.main.groovy.srcDirs
coverageFormats = ['html', 'xml']
}

0 comments on commit 0b6b469

Please sign in to comment.