Skip to content

Commit

Permalink
Merge pull request #7 from acebaggins/travis-integration
Browse files Browse the repository at this point in the history
Adding Travis CI and Coverall support
  • Loading branch information
acebaggins committed Nov 3, 2019
2 parents 6702c10 + 994398a commit 2c7050f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: java
sudo: false
jdk: openjdk8
install: true
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
after_success:
- ./gradlew jacocoTestReport coveralls
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
guava-gson-serializers
================
# guava-gson-serializers
[![Build Status](https://travis-ci.com/acebaggins/guava-gson-serializers.svg?branch=master)](https://travis-ci.com/acebaggins/guava-gson-serializers)
[![Coverage Status](https://coveralls.io/repos/github/acebaggins/guava-gson-serializers/badge.svg?branch=master)](https://coveralls.io/github/acebaggins/guava-gson-serializers?branch=master)
[![Apache 2.0](https://img.shields.io/github/license/nebula-plugins/nebula-publishing-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0)


#### Expanded Gson serialization for Guava ImmutableCollections, ImmutableMaps, and Optionals.

Expand Down
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ plugins {
id 'nebula.release' version '13.0.0'
id 'nebula.maven-nebula-publish' version '14.0.0'
id 'nebula.source-jar' version '14.0.0'
id 'com.github.kt3k.coveralls' version '2.8.4'
}

jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}

dependencies {
Expand All @@ -25,6 +33,10 @@ repositories {
mavenCentral()
}

coveralls {
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}

publishing {
repositories {
maven {
Expand Down

0 comments on commit 2c7050f

Please sign in to comment.