-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nbaztec/make-plugin-generic
remove kotlin dependency, rename plugin, improve test coverage
- Loading branch information
Showing
17 changed files
with
549 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: create github release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: publish to gradle | ||
env: | ||
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | ||
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | ||
run: ./gradlew setupPublishSecrets publishPlugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
# Coveralls Jacoco Kotlin Gradle Plugin | ||
[![Coverage Status](https://coveralls.io/repos/github/nbaztec/coveralls-jacoco-kotlin-gradle-plugin/badge.svg?branch=master)](https://coveralls.io/github/nbaztec/coveralls-jacoco-kotlin-gradle-plugin?branch=master) | ||
# Coveralls Jacoco Gradle Plugin | ||
[![Coverage Status](https://coveralls.io/repos/github/nbaztec/coveralls-jacoco-gradle-plugin/badge.svg?branch=master)](https://coveralls.io/github/nbaztec/coveralls-jacoco-gradle-plugin?branch=master) | ||
|
||
A jacoco test coverage reporter gradle plugin for Kotlin and [coveralls.io](https://coveralls.io). | ||
A jacoco test coverage reporter gradle plugin for [coveralls.io](https://coveralls.io). | ||
|
||
The plugin supports non-root packages in line with the recommended [Kotlin directory structure](https://kotlinlang.org/docs/reference/coding-conventions.html#directory-structure) | ||
which was missing in many other plugins for the Kotlin ecosystem. | ||
|
||
## Usage | ||
|
||
[Gradle Plugin page](https://plugins.gradle.org/plugin/com.github.nbaztec.coveralls-jacoco-kotlin) | ||
[Gradle Plugin page](https://plugins.gradle.org/plugin/com.github.nbaztec.coveralls-jacoco) | ||
|
||
Apply the plugin with the ID: `com.github.nbaztec.coveralls-jacoco-kotlin` | ||
Apply the plugin with the ID: `com.github.nbaztec.coveralls-jacoco` | ||
This will add a gradle task `coverallsJacoco` that can be used to publish coverage report via `./gradlew test coverallsJacoco` | ||
|
||
## Options | ||
```kotlin | ||
// build.gradle.kts | ||
|
||
coverallsJacoco { | ||
reportPath = 'build/reports/jacoco/test/jacocoTestReport.xml' | ||
rootPackage = 'com.github.nbaztec.foo' // optional, leave out if project has java directory structure | ||
additionalSourceSets = [ sourceSets.foo, sourceSets.bar ] // optional, sourceSet.main is always included | ||
apiEndpoint = "https://coveralls.io/api/v1/jobs" // optional | ||
reportPath = "" // default: "build/reports/jacoco/test/jacocoTestReport.xml" | ||
rootPackage = "com.github.nbaztec.foo" // optional, leave out if project has a normal java styled directory structure | ||
reportSourceSets = [ sourceSets.foo, sourceSets.bar ] // optional, default: main | ||
apiEndpoint = "" // optional, default: https://coveralls.io/api/v1/jobs | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rootProject.name = 'coveralls-jacoco-kotlin-gradle-plugin' | ||
rootProject.name = 'coveralls-jacoco-gradle-plugin' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.