Skip to content

Commit a165420

Browse files
committed
add travis and codecov
1 parent 427c711 commit a165420

3 files changed

Lines changed: 56 additions & 1 deletion

File tree

.codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "70...100"
5+
status:
6+
patch:
7+
default:
8+
if_no_uploads: error
9+
changes: true
10+
project:
11+
default:
12+
target: auto
13+
if_no_uploads: error
14+
comment: false

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: java
2+
jdk:
3+
- openjdk7
4+
- oraclejdk7
5+
- oraclejdk8
6+
before_cache:
7+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
8+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
9+
sudo: false
10+
cache:
11+
directories:
12+
- $HOME/.gradle/caches/
13+
- $HOME/.gradle/wrapper/
14+
script:
15+
- "./gradlew clean check jacocoTestReport --continue"
16+
after_success:
17+
- bash <(curl -s https://codecov.io/bash)
18+
after_failure:
19+
- cat $HOME/build/auth0/auth0-java/build/reports/tests/index.html
20+
branches:
21+
only:
22+
- master
23+
- v1

build.gradle

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
group 'com.auth0'
22
version '2.0-SNAPSHOT'
33

4+
apply plugin: 'jacoco'
45
apply plugin: 'java'
56

6-
sourceCompatibility = 1.7
7+
compileJava {
8+
sourceCompatibility '1.7'
9+
targetCompatibility '1.7'
10+
}
711

812
repositories {
913
mavenCentral()
1014
}
1115

16+
jacocoTestReport {
17+
reports {
18+
xml.enabled = true
19+
html.enabled = true
20+
}
21+
}
22+
23+
test {
24+
testLogging {
25+
events "passed", "skipped", "failed", "standardError"
26+
exceptionFormat "short"
27+
}
28+
}
29+
1230
dependencies {
1331
compile 'com.squareup.okhttp3:okhttp:3.5.0'
1432
compile 'com.squareup.okhttp3:logging-interceptor:3.5.0'

0 commit comments

Comments
 (0)