start-codecov
Version:
Codecov task for Start
52 lines (41 loc) • 1.7 kB
Markdown
[](https://www.npmjs.com/package/start-codecov)
[](https://travis-ci.org/start-runner/codecov)
[](https://ci.appveyor.com/project/start-runner/codecov)
[](https://codecov.io/github/start-runner/codecov)
[](https://gemnasium.com/start-runner/codecov)
[](https://codecov.io/) task for [Start](https://github.com/start-runner/start).
```sh
npm install --save-dev start-codecov
yarn add --dev start-codecov
```
```js
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import read from 'start-read';
import clean from 'start-clean';
import mocha from 'start-mocha';
import * as istanbul from 'start-istanbul';
import codecov from 'start-codecov';
const start = Start(reporter());
export const cover = () => start(
files('coverage/'),
clean(),
files('lib/**/*.js'),
istanbul.instrument(),
files('test/**/*.js'),
mocha(),
istanbul.report()
);
export const travis = () => start(
cover,
files('coverage/lcov.info'),
read(),
codecov()
);
```
This task relies on `[{ path, data, map }]` input and provides the same, see [documentation](https://github.com/start-runner/start#readme) for details.