Skip to content

Commit

Permalink
Add nyc and coveralls (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Jul 18, 2018
1 parent 2b71337 commit eb1aead
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.DS_Store
npm-debug.log
package-lock.json
.nyc_output/
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
language: node_js

node_js: stable

script:
- npm run test-browsers

addons:
hosts:
- airtap.local
sauce_connect: true

after_success: npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![npm](https://img.shields.io/npm/v/level-js.svg)](https://www.npmjs.com/package/level-js)
[![Travis](https://secure.travis-ci.org/Level/level-js.svg?branch=master)](http://travis-ci.org/Level/level-js)
[![npm](https://img.shields.io/npm/dm/level-js.svg)](https://www.npmjs.com/package/level-js)
[![Coverage Status](https://coveralls.io/repos/github/Level/level-js/badge.svg)](https://coveralls.io/github/Level/level-js)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Table of Contents
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"test": "standard && airtap --local test/index.js",
"test-browsers": "standard && airtap --sauce-connect --loopback airtap.local test/index.js",
"test": "standard && airtap --local --coverage test/index.js",
"test-browsers": "standard && airtap --sauce-connect --loopback airtap.local --coverage test/index.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"remark": "remark README.md CONTRIBUTORS.md CHANGELOG.md UPGRADING.md -o"
},
"files": [
Expand Down Expand Up @@ -37,7 +38,9 @@
"devDependencies": {
"airtap": "0.1.0",
"buffer": "~5.1.0",
"coveralls": "^3.0.2",
"level-community": "~3.0.0",
"nyc": "^12.0.2",
"remark-cli": "^5.0.0",
"remark-collapse": "~0.1.2",
"remark-git-contributors": "~0.2.1",
Expand Down

0 comments on commit eb1aead

Please sign in to comment.