Skip to content

Commit 9ede972

Browse files
committed
Add codecov and travis
1 parent 023f2ff commit 9ede972

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
before_script:
5+
- chmod +x gradlew
6+
script:
7+
- ./gradlew check
8+
- ./gradlew codeCoverageReport
9+
after_success:
10+
- bash <(curl -s https://codecov.io/bash)

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ buildscript {
88
}
99
}
1010
apply plugin: 'java'
11+
apply plugin: 'jacoco'
1112
apply plugin: 'net.minecraftforge.gradle.forge'
1213
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
1314

@@ -64,6 +65,13 @@ dependencies {
6465

6566
}
6667

68+
jacocoTestReport {
69+
reports {
70+
xml.enabled true
71+
html.enabled false
72+
}
73+
}
74+
6775
processResources {
6876
// this will ensure that this task is redone when the versions change.
6977
inputs.property "version", project.version

0 commit comments

Comments
 (0)