drone-opencov/README.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2018-12-09 17:10:26 +01:00
<img src="coveralls.svg" alt="logo" width="240"/>
2018-12-09 17:03:17 +01:00
2018-12-09 16:11:34 +01:00
# drone-coveralls
2018-12-09 17:03:17 +01:00
[![BuildStatus](https://cat.eming.li/api/badges/lizheming/drone-coveralls/status.svg)](https://cat.eming.li/lizheming/drone-coveralls)
[![Docker Pulls](https://img.shields.io/docker/pulls/lizheming/drone-coveralls.svg)]()
[![](https://images.microbadger.com/badges/image/lizheming/drone-coveralls.svg)](https://microbadger.com/images/lizheming/drone-coveralls)
2018-12-09 16:11:34 +01:00
Drone plugin for pushing test coverage to coveralls
2018-12-09 17:03:17 +01:00
This plugin allows for pushing test coverage results to [Coveralls.io](https://coveralls.io).
## Configuration
First of all you should set environment `COVERALLS_REPO_TOKEN` for plugin. And the following parameters are used to configure the plugin:
files: list of target files to upload. Required.
token: if you have not set environment `COVERALLS_REPO_TOKEN`, you should set the private repository token.
debug: debug mode, defaults to false.
### Drone configuration examples
```yaml
steps:
- name: test
image: node:alpine
commands:
- npm install
- npm run test -- --reporter=text-lcov > ./lcov.info
- name: coveralls
image: lizheming/drone-coveralls
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
settings:
files:
- ./lcov.info
```