Browse Source

Add jacoco and coveralls

pull/31/head
Chris Smith 9 years ago
parent
commit
7ce2abd03c
2 changed files with 17 additions and 1 deletions
  1. 12
    0
      build.gradle
  2. 5
    1
      circle.yml

+ 12
- 0
build.gradle View File

@@ -3,6 +3,9 @@ group = 'com.dmdirc'
3 3
 apply plugin: 'com.dmdirc.git-version'
4 4
 apply plugin: 'java'
5 5
 apply plugin: 'maven-publish'
6
+apply plugin: 'jacoco'
7
+apply plugin: 'com.github.kt3k.coveralls'
8
+
6 9
 
7 10
 sourceSets {
8 11
     main {
@@ -63,5 +66,14 @@ buildscript {
63 66
 
64 67
     dependencies {
65 68
         classpath group: 'com.dmdirc', name: 'git-version', version: '1.0'
69
+        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.1.0'
66 70
     }
67 71
 }
72
+
73
+jacocoTestReport {
74
+    reports {
75
+        xml.enabled = true // coveralls plugin depends on xml format report
76
+        html.enabled = true
77
+    }
78
+}
79
+

+ 5
- 1
circle.yml View File

@@ -2,4 +2,8 @@
2 2
 
3 3
 machine:
4 4
   java:
5
-    version: oraclejdk8
5
+    version: oraclejdk8
6
+
7
+test:
8
+  post:
9
+    - ./gradlew client:jacocoTestReport client:coveralls

Loading…
Cancel
Save