Skip to content

Commit

Permalink
Merge pull request #17 from DerYeger/develop
Browse files Browse the repository at this point in the history
Added Travis CI and Codecov analysis
  • Loading branch information
DerYeger committed Sep 30, 2019
2 parents c41f1f9 + 9a2e07d commit ffe2ba8
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 10 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: java

sudo: false # Linux OS: run in container

matrix:
include:
# Headed Linux
- os: linux
dist: trusty
jdk: openjdk12

before_install:
- chmod +x gradlew
- chmod +x gradle/wrapper/gradle-wrapper.jar

install: true

script:
- ./gradlew build
- ./gradlew jacocoTestReport

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.lock

after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<p align="center"><img alt="REFUNK" src="doc/logo_transparent.png"></p>

<p align="center">
<img alt="License" src="https://img.shields.io/github/license/DerYeger/refunk?color=40aef6&style=for-the-badge">
<img alt="JitPack" src="https://img.shields.io/jitpack/v/github/DerYeger/refunk?color=7963dc&style=for-the-badge">
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html"><img alt="License" src="https://img.shields.io/github/license/DerYeger/refunk?color=40aef6&style=for-the-badge"></a>
<a href="https://jitpack.io/#eu.yeger/refunk"><img alt="JitPack" src="https://img.shields.io/jitpack/v/github/DerYeger/refunk?color=7963dc&style=for-the-badge"></a>
<img alt="Contributions" src="https://img.shields.io/badge/contributions-welcome-da4c99?style=for-the-badge">
<img alt="Downloads" src="https://img.shields.io/jitpack/dm/github/DerYeger/refunk?color=eaa232&style=for-the-badge">
<a href="https://codecov.io/gh/DerYeger/refunk"><img alt="Downloads" src="https://img.shields.io/codecov/c/github/deryeger/refunk?color=eaa232&style=for-the-badge"></a>
</p>

***REFUNK*** is small and lightweight library for studying and evaluating **primitive recursive functions** in Kotlin.\
Expand All @@ -26,7 +26,7 @@ allprojects {
</pre>
<pre>
dependencies {
implementation 'eu.yeger:refunk:v2.0.1'
implementation 'eu.yeger:refunk:{version}'
}
</pre>
</details>
Expand All @@ -48,7 +48,7 @@ dependencies {
&lt;dependency&gt;
&lt;groupId&gt;eu.yeger&lt;/groupId&gt;
&lt;artifactId&gt;refunk&lt;/artifactId&gt;
&lt;version&gt;v2.0.1&lt;/version&gt;
&lt;version&gt;{version}&lt;/version&gt;
&lt;/dependency&gt;
</pre>
</details>
Expand Down
14 changes: 11 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
plugins {
id "jacoco"
id "org.jetbrains.kotlin.jvm" version "1.3.50"
}

group "eu.yeger"
version "v2.0.1"
version "2.0.2"

repositories {
mavenCentral()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("junit:junit:4.12")
implementation group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8"
testImplementation group: "junit", name: "junit", version: "4.12"
}

compileKotlin {
Expand All @@ -23,4 +24,11 @@ compileKotlin {

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
coverage:
range: 50..100
round: down
precision: 2
status:
project:
default:
target: 50
threshold: null
base: auto
patch:
default:
target: 50
threshold: null
base: auto
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit ffe2ba8

Please sign in to comment.