• Stars
    star
    254
  • Rank 154,408 (Top 4 %)
  • Language
    Groovy
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ‘จโ€๐Ÿ”ง gradle plugin for coveralls

coveralls-gradle-plugin v2.12.2

Java CI Coverage Status

Send coverage data to coveralls.io.

Usage

Use with cobertura reporter

Add the following lines to build.gradle:

plugins {
    id 'net.saliman.cobertura' version '4.0.0'
    id 'com.github.kt3k.coveralls' version '2.12.2'
}

cobertura.coverageFormats = ['html', 'xml'] // coveralls plugin depends on xml format report

And run coveralls task after cobertura task.

An example .travis.yml looks like following:

language: java

jdk:
- oraclejdk11

after_success:
- ./gradlew cobertura coveralls

For groovy projects, add the following line to build.gradle:

cobertura.coverageSourceDirs = sourceSets.main.groovy.srcDirs

Use with JaCoCo plugin

Add the following lines to build.gradle:

plugins {
    id 'jacoco'
    id 'com.github.kt3k.coveralls' version '2.12.2'
}

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

An example .travis.yml looks like following:

language: java

jdk:
- oraclejdk11

after_success:
- ./gradlew jacocoTestReport coveralls

Configuration Options

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

Use with pitest plugin

Add the following lines to build.gradle:

plugins {
    id "info.solidsoft.pitest" version '1.6.0'
    id 'com.github.kt3k.coveralls' version '2.12.2'
}

pitest {
    timestampedReports = false
    outputFormats = ['XML']
}

An example .travis.yml looks like following:

language: java

jdk:
- oraclejdk11

after_success:
- ./gradlew pitest coveralls

Use with Travis-CI Pro & Coveralls Pro

When using Travis-CI Pro, you must provide your Coveralls Pro repo token in the COVERALLS_REPO_TOKEN environment variable in .travis.yml.

env:
  global:
    - COVERALLS_REPO_TOKEN=mySecRetRepoToken

You may also use a secure environment variable to hold COVERALLS_REPO_TOKEN by following the instructions on docs.travis-ci.com.

env:
  global:
    - secure: <encrypted string here>

Use with multi-project build

This plugin only handles one project per build. You need to merge coverage report before coveralls plugin take it.

See example: https://github.com/ben-manes/caffeine/blob/v2.6.2/build.gradle#L133

Configuring coveralls "task"

If you configure coveralls "task" (not the extension object), you need to write as the following:

tasks.coveralls {
  dependsOn 'check'
}

CI Services

The following CI services should automatically work:

If you need to customize something or support a different CI service, you can configure environment variables:

  • CI_NAME
  • CI_BUILD_NUMBER
  • CI_BUILD_URL
  • CI_BRANCH
  • CI_PULL_REQUEST
  • COVERALLS_REPO_TOKEN

Supported CI names

  • Travis-CI: travis-ci
  • Travis-Pro: travis-pro
  • CircleCI: circleci
  • Jenkins: jenkins
  • Snap CI: snapci
  • Bitrise CI: bitrise

If you have COVERALLS_REPO_TOKEN set and you're using Travis-CI not Travis-Pro, you need to set CI_NAME=travis-ci.

HTTPS proxy settings

You can set https proxy if needed. Environment variables to configure:

  • https.proxyHost
  • https.proxyPort (default value is 443)

Examples

License

MIT License ( Yoshiya Hinosawa )

Note

  • The ID of the plugin has been changed from coveralls to com.github.kt3k.coveralls according to the guidelines of gradle plugin. Please see the examples below for details. (2014/07/21)

See also

  • https://codecov.io/
    • An alternative web service to coveralls.
      • Better API design, which accepts any of major formats.
      • Nice browser extensions - You can see coverage information in GitHub UI.

Release History

  • 2023-03-07 v2.12.2 Better error message. (#114)
  • 2021-04-07 v2.12.0 Added Drone support. (#111)
  • 2020-08-07 v2.10.2 Fix path handling of JaCoCo report. (#108)
  • 2020-02-28 v2.10.1 Upgrade httpmime dependency. (#104)
  • 2020-02-16 v2.10.0 Add branch detection. (#102)
  • 2019-12-11 v2.9.0 Add GitHub Actions support. (#99)
  • 2019-05-25 v2.8.4 Maintainance update (refactored).
  • 2017-10-17 v2.8.2 Fixed PR ID in Jenkins. (#79)
  • 2017-02-08 v2.8.1 Fixed PIT report. (#73)
  • 2017-02-06 v2.8.0 Added PIT support. (#71)
  • 2016-11-14 v2.7.1 Recover Java 7 support. (v2.7.0 doesn't work with Java 8)
  • 2016-11-11 v2.7.0 Added HTTPS proxy settings. (#67)
  • 2016-01-29 v2.6.3 Recover Java 7 support. (v2.6.0 and v2.6.1 don't work with Java 8)
  • 2016-01-29 v2.6.3 Recover Java 7 support. (v2.6.0 and v2.6.1 don't work with Java 8)
  • 2016-01-29 v2.6.1 Improved CircleCI support. (#52)
  • 2016-01-22 v2.6.0 Improved CircleCI support. (#51)
  • 2016-01-18 v2.5.0 Added Bitrise CI support. (#50)
  • 2015-05-10 v2.4.0 Improved Travis CI support. (#40)
  • 2015-02-10 v2.3.1 Improved Snap CI support. (#36)
  • 2015-02-10 v2.3.0 Snap CI support. (#35)
  • 2015-02-08 v2.2.0 JenkinsCI support. (#33)
  • 2015-01-05 v2.1.0 CircleCI support. (#31)
  • 2014-10-05 v2.0.1 Compatibility with gradle-android-plugin 0.13.x. ([#25](https://github.com/kt3k/coveralls-gra dle-plugin/pull/25))
  • 2014-08-01 v2.0.0 More CI services support. Improvements. (#21)
  • 2014-07-21 v1.0.2 Plugin ID changed. coveralls -> com.github.kt3k.coveralls (#19)
  • 2014-07-06 v0.6.1 XML parser behaviours fixed. (#18)
  • 2014-07-02 v0.6.0 Multiple project support for JaCoCo. (#13)
  • 2014-06-26 v0.5.0 Android plugin support. (#17)
  • 2014-06-21 v0.4.1 XML parser settings fixed. (#16)
  • 2014-03-15 v0.3.1 HttpBuilder upgraded to v0.7.1. (#8)
  • 2014-03-11 v0.3.0 Coverage report path became configurable. (#7)
  • 2014-02-19 v0.2.5 Travis Pro support. (#4)
  • 2014-01-21 v0.2.4 Ignore absent source files. (#3)
  • 2013-12-09 v0.2.1 JaCoCo support. (#2)
  • 2013-11-02 v0.1.6 Available at Maven Central.
  • 2013-10-27 v0.1.5 Multiple <source> tag support. (#1)
  • 2013-10-08 v0.1.3 First usable version.

More Repositories

1

packup

๐Ÿ“ฆ Zero-config web application packager for Deno
TypeScript
302
star
2

remarker

โ–ถ๏ธ Remark cli
JavaScript
138
star
3

saku

โ“‚๏ธ Markdown-based task runner
Go
71
star
4

node-saku

โ“‚๏ธ Markdown-based task runner
JavaScript
71
star
5

kocha

๐Ÿต Modern, simpler Mocha clone, no globals, lint friendly
JavaScript
69
star
6

deno-bin

Use Deno via npm
JavaScript
53
star
7

deno_sticker

๐Ÿฆ• The data I used for submitting for printing deno_sticker.
50
star
8

twd

๐Ÿšฉ Simple tailwind like CLI tool for deno ๐Ÿฆ•
TypeScript
44
star
9

now-deno-example

A demo application of now-deno and deno-postgres.
HTML
30
star
10

lepont

๐ŸŒ‰ A native <-> browser (webview) bridge library for react-native
TypeScript
29
star
11

deno_license_checker

๐Ÿ“„ CLI tool for checking license headers in files
TypeScript
21
star
12

buttons

๐ŸŒฑ buttons is a web service to help you keep doing things everyday
JavaScript
21
star
13

update-pr-description

Update Pull Request Description on Push
JavaScript
19
star
14

status-back

โฌ…๏ธ๐Ÿ”ต Send the status back to the github from CI environment
JavaScript
19
star
15

berber

Static site generator generator on top of gulp ecosystem
JavaScript
18
star
16

license_checker_github_action

GitHub Action for checking the license lines of the files in a repository
Dockerfile
16
star
17

bulbo

๐Ÿน Generate your static site with gulp plugins!
JavaScript
15
star
18

ruby-bmp

๐Ÿ†™ No hassle on bumping. [Deprecated] See https://github.com/kt3k/bmp instead
Ruby
13
star
19

moneybit

A Cli tool for creating the general ledger of a journal https://npm.im/moneybit
JavaScript
13
star
20

deploy_dir

[DEPRECATED] ๐Ÿ“ฆ Read a directory and package it as Deno Deploy source code
TypeScript
12
star
21

times-kt3k

My timeline
TypeScript
11
star
22

bmp

โคด๏ธ Version up. No hassles.
TypeScript
11
star
23

shuho

Weeknotes
CSS
10
star
24

mito

Tiny (222B) micro-templating engine
JavaScript
10
star
25

domaindoc

๐ŸŒŠ Documentation tool for domain models
JavaScript
9
star
26

codecov-karma-example

An example repository for showing how to generate the codecov reports with Karma testing framework
JavaScript
8
star
27

moneybit-app

๐Ÿ’ตไป•่จณๅธณใ‚’ๅ…ฅๅŠ›ใ—ใŸใ‚‰ๆ็›Š่จˆ็ฎ—ๆ›ธใƒป่ฒธๅ€Ÿๅฏพ็…ง่กจใ‚’่กจ็คบใ—ใฆใใ‚Œใ‚‹ใ‚ขใƒ—ใƒช WIP
JavaScript
8
star
28

lambda-deno-runtime-wip

Run deno in AWS Lambda environment (WIP)
Makefile
7
star
29

mux_async_iterable

Multiplexer of async iterables for JavaScript, written in TypeScript
TypeScript
6
star
30

minimisted

Handy wrapper of `minimist`
JavaScript
6
star
31

layout1

Gulp transform which `wraps` the files in the stream with the given layout template(s).
JavaScript
6
star
32

emoji-gen

๐Ÿถ ๐Ÿญ ๐Ÿ‘ฝ Create your own set of `emoji`s from your images.
JavaScript
6
star
33

arrowkeys

Arrowkey events in browser
JavaScript
5
star
34

deno_talk_1

5
star
35

talk_jsconfjp_2022

JSConf JP 2022 slides
JavaScript
5
star
36

todomvc-test

โ˜‘๏ธ Test TodoMVC on the give url.
JavaScript
5
star
37

line-bot-deno-deploy

An example LINE bot on Deno Deploy
TypeScript
5
star
38

basic_auth

Module for performing Basic Auth in Deno Deploy
TypeScript
5
star
39

langsheet

๐ŸŒTranslation data to HTML table converter
HTML
5
star
40

lepont-async-storage

Use react-native's AsyncStorage in browser, a lepont plugin
TypeScript
5
star
41

post-wavy

use ~ in require and import calls
JavaScript
5
star
42

branch-pipe

Simple syntax for branching and merging a stream
JavaScript
4
star
43

ebean-enhance-plugin

A gradle plugin for enhancing ebean entities.
Kotlin
4
star
44

browser-streaming-examples

examples to perform streaming in browsers
JavaScript
4
star
45

vinyl-serve

Serves the vinyl stream directly
JavaScript
4
star
46

bijective_base_n

Convert numbers to bijective base-n notation
TypeScript
4
star
47

stubbatti

A command line stub http server with the special DSL.
JavaScript
4
star
48

react-streaming-ssr-examples

random streaming ssr examples
TypeScript
4
star
49

node-es-logger

โ‡๏ธ Creates bunyan logger bound to elasticsearch output.
JavaScript
4
star
50

japanese-income-tax

๐Ÿ’ด A tool for calculating Japanese income tax.
JavaScript
4
star
51

localsd

Localhost Service Discovery service
JavaScript
3
star
52

t10

๐ŸŒ Translation (t10) for browser
JavaScript
3
star
53

idnt

Change indent level
JavaScript
3
star
54

now-deno-demo

A demo application of now-deno and deno-postgres.
HTML
3
star
55

gzip_size

Shows the gzipped size of the given file
TypeScript
3
star
56

vscode-pixeledit

JavaScript
3
star
57

prisma-deno-deploy-example

The example usage of Prisma Data Proxy in Deno Deploy
TypeScript
3
star
58

deps_info

An alternative to `deno info`, supports non-standard file imports, such as .css, .svg, etc
TypeScript
3
star
59

DCSA

Why DCSA architecture?
3
star
60

ScenarioScript

Script language suitable for storing scenario data.
JavaScript
3
star
61

example-karma-browserify-babel-istanbul

Example settings of karma-browserify and babel-plugin-istanbul
HTML
3
star
62

docker-distroless-deno-example

Run deno in distroless container
Dockerfile
2
star
63

event-hub

A dom which works as an event hub
JavaScript
2
star
64

dom-gen

Utility for dom generation, a jquery plugin
JavaScript
2
star
65

matango

A fragment language, expressing key-value pairs, aims to be embedded in other languages.
JavaScript
2
star
66

talk_devsumi_2022_deno

Makefile
2
star
67

anarchy-golf-old-solutions

my old solutions of anarchy golf. most of things don't make sense anymore even to me.
Python
2
star
68

vinyl-fork

Fork a vinyl stream
JavaScript
2
star
69

talk_fresh

2
star
70

vinyl-accumulate

Accumulates input vinyls and appends them to the output
JavaScript
2
star
71

deploy-require-test

TypeScript
2
star
72

iterable_file_server

Serve items from `AsyncIterable<File>`
TypeScript
2
star
73

deno_snippets

random deno snippets
TypeScript
2
star
74

swipe-event

Handle swipe events
JavaScript
2
star
75

example-testdouble.js

Example usage of testdouble.js
JavaScript
2
star
76

layout-wrapper

๐Ÿน Wrap the contents in the layout template. gulpfriendly.
JavaScript
2
star
77

souffle

DEPRECATED
JavaScript
2
star
78

denobook

denobook draft
JavaScript
2
star
79

hash-route

๐Ÿ”€ A simple frontend router based on decorator and hash string
JavaScript
2
star
80

gameloop

Simple game loop
TypeScript
2
star
81

deploy-import-assert-test

TypeScript
2
star
82

zenn-like

Classless css framework which simulates zenn.dev's UI
CSS
2
star
83

talk_deno_deploy

toranoana.deno #0 ใฎ Deno Deploy ใฎ่ฉฑใฎใ‚นใƒฉใ‚คใƒ‰
Makefile
2
star
84

tee_async_iterable

tee for AsyncIterable
TypeScript
2
star
85

unocss-deno-ssr-example

minimal unocss ssr usage in Deno
TypeScript
2
star
86

denowk

Awk like command line utility, you can run JavaScript for each line of input.
TypeScript
2
star
87

deno_talk_4

talk about lambda and deno https://kt3k.github.io/deno_talk_4/
2
star
88

littleweb

doodles
2
star
89

esbuild_loader

A utility module for loading esbuild wasm into Deno runtime from the disk
TypeScript
2
star
90

talk_fresh_2

JavaScript
1
star
91

escape-cli

`escape-cli` command escapes the stdin and outputs the result to stdout.
JavaScript
1
star
92

astro-deno-example

Astro
1
star
93

ulid

ULID for Deno
TypeScript
1
star
94

example-bundle-moment-locale-ja-timezone-jst

Small moment bundle example for locale=ja and timezone=jst env
JavaScript
1
star
95

license_check_configs

1
star
96

eslint-config-souffle

[DEPRECATED, I switched to standard] eslint shareable config for souffle
JavaScript
1
star
97

prisma-example

JavaScript
1
star
98

windy-chicken-26

TypeScript
1
star
99

spn

๐Ÿ‘พ Sprite Engine ๐Ÿ‘พ
JavaScript
1
star
100

babel-preset-decorators-legacy

Babel preset which only includes babel-plugin-transform-decorators-legacy plugin.
JavaScript
1
star