Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 48429cc

Browse files
committedFeb 7, 2018
#16 first try.
1 parent 8d41b9e commit 48429cc

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
 

‎.circleci/config.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- image: circleci/openjdk:9-jdk-node-browsers
3333
environment:
3434
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
35+
COVERALLS_REPO_TOKEN: $COVERALLS_REPO_TOKEN
3536

3637
# Specify service dependencies here if necessary
3738
# CircleCI maintains a library of pre-built images
@@ -82,6 +83,12 @@ jobs:
8283
paths:
8384
- codeclimate.java.json
8485

86+
# run test coverage to coveralls
87+
- run:
88+
name: Upload to coveralls
89+
command: |
90+
gradle test jacocoJupTestReport coveralls
91+
8592
# upload test coverage to codacy
8693
# - run:
8794
# command: |
@@ -127,7 +134,7 @@ jobs:
127134
root: tmp
128135
paths:
129136
- codeclimate.python.json
130-
137+
131138
# upload test coverage to codacy
132139
# - run:
133140
# command: |

‎build.gradle

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.1'
10+
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
1011
}
1112
}
1213

@@ -26,6 +27,8 @@ apply plugin: 'java'
2627
apply plugin: 'application'
2728
apply plugin: 'org.junit.platform.gradle.plugin'
2829

30+
apply plugin: 'com.github.kt3k.coveralls'
31+
2932
//https://stackoverflow.com/questions/46233314/gradle-android-jacoco-and-junit5
3033
apply plugin: 'jacoco'
3134
jacocoTestCoverageVerification {
@@ -113,11 +116,6 @@ sourceSets {
113116
}
114117
}
115118

116-
repositories {
117-
mavenLocal()
118-
mavenCentral()
119-
}
120-
121119
//https://github.com/junit-team/junit5/issues/1024#issuecomment-354384992
122120
afterEvaluate {
123121
def junitPlatformTestTask = (JavaExec) project.tasks.getByName('junitPlatformTest')

0 commit comments

Comments
 (0)
Please sign in to comment.