encrust

1.0.2 • Public • Published

encrust

Send LCOV code coverage and ESLint warnings and errors from CI builds to splunk project nova.

Build Status

Supports Travis CI Environment Variables.

Getting Started

  1. Get a Splunk Project Nova account from https://www.splunknova.com/
  2. Get the API Key
  3. Make sure your builds generate LCOV coverage (nyc does this automatically)
  4. Make sure your builds generate ESLint coverage in JSON format, like eslint -f json . > coverage/eslint.json
  5. Add the following environmental variables to your CI:
    1. eslint__file - path to your ESLint JSON coverage, like ./coverage/eslint.json
    2. lcov__file - path to your LCOV coverage, like ./coverage/lcov.info
    3. nova__clientId - Client ID from https://www.splunknova.com/apikeys
    4. nova__clientSecret - Client Secret from https://www.splunknova.com/apikeys
  6. Add encrust to your post-build steps.

See encrust.js --help for more verbose instructions.

Also, see the .travis.yml and package.json in this repository for a working implementation.

Package Sidebar

Install

npm i encrust

Weekly Downloads

1

Version

1.0.2

License

GPL-3.0

Last publish

Collaborators

  • fluxsauce