Skip to content

Commit

Permalink
Travis fix (#16)
Browse files Browse the repository at this point in the history
Fixing travis and adding code coverage
  • Loading branch information
Tomek Polański authored Jan 10, 2017
1 parent 3d44339 commit 7daa293
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ android:
- platform-tools
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-google-m2repository

script:
- ./options/gradlew build
- cd options
- ./gradlew build check

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Options
[![Build Status](https://travis-ci.org/tomaszpolanski/Options.svg?branch=master)](https://travis-ci.org/tomaszpolanski/Options)
[![codecov.io](http://codecov.io/github/tomaszpolanski/Options/coverage.svg?branch=master)](http://codecov.io/github/tomaszpolanski/Options?branch=master)
[![Method count](https://img.shields.io/badge/Methods and size-core: 118 | deps: 20 | 16 KB-e91e63.svg)](http://www.methodscount.com/?lib=com.github.tomaszpolanski%3Aoptions%3A1.2.0)

[Functional Option](https://en.wikipedia.org/wiki/Option_type) that can be used with Java 1.7 and Android.
Expand Down
16 changes: 15 additions & 1 deletion options/core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'jacoco'

group = 'com.github.tomaszpolanski'

jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}

check.dependsOn jacocoTestReport

buildscript {
ext.kotlin_version = '1.0.1-2'
repositories {
mavenLocal()
mavenCentral()
jcenter()

maven { url "http://repo1.maven.org/maven2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1-2"
Expand Down Expand Up @@ -56,4 +70,4 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
artifacts {
archives sourcesJar
archives javadocJar
}
}

0 comments on commit 7daa293

Please sign in to comment.