Add coveralls.io support

master
Mingun 6 years ago
parent f0e5eebe1a
commit 3f8cf7cd58

@ -10,6 +10,9 @@ node_js:
before_script: before_script:
- npm install -g gulp - npm install -g gulp
after_success:
- npm run coverage
cache: cache:
directories: directories:
- node_modules - node_modules

@ -1,4 +1,5 @@
[![ci](https://img.shields.io/travis/pegjs/pegjs.svg)](https://travis-ci.org/pegjs/pegjs) [![ci](https://img.shields.io/travis/pegjs/pegjs.svg)](https://travis-ci.org/pegjs/pegjs)
[![coverage](https://img.shields.io/coveralls/github/pegjs/pegjs.svg)](https://coveralls.io/github/pegjs/pegjs)
[![release](https://img.shields.io/npm/v/pegjs.svg)](https://www.npmjs.com/package/pegjs) [![release](https://img.shields.io/npm/v/pegjs.svg)](https://www.npmjs.com/package/pegjs)
[![dev](https://img.shields.io/npm/v/pegjs/dev.svg)](https://github.com/pegjs/pegjs) [![dev](https://img.shields.io/npm/v/pegjs/dev.svg)](https://github.com/pegjs/pegjs)
[![bower](https://img.shields.io/bower/v/pegjs.svg)](https://github.com/pegjs/bower) [![bower](https://img.shields.io/bower/v/pegjs.svg)](https://github.com/pegjs/bower)

@ -30,7 +30,8 @@
"clean": "gulp clean", "clean": "gulp clean",
"test:impact": "node test/impact", "test:impact": "node test/impact",
"test:server": "node test/server/run", "test:server": "node test/server/run",
"test": "nyc gulp" "test": "nyc gulp",
"coverage": "nyc report --reporter=text-lcov | coveralls"
}, },
"devDependencies": { "devDependencies": {
"babel-preset-es2015": "6.24.1", "babel-preset-es2015": "6.24.1",
@ -39,6 +40,7 @@
"babelify": "8.0.0", "babelify": "8.0.0",
"browserify": "14.5.0", "browserify": "14.5.0",
"chai": "4.1.2", "chai": "4.1.2",
"coveralls": "3.0.0",
"del": "3.0.0", "del": "3.0.0",
"eslint-config-futagozaryuu": "3.7.x", "eslint-config-futagozaryuu": "3.7.x",
"express": "4.16.2", "express": "4.16.2",
@ -66,8 +68,8 @@
"**/.eslintrc.js" "**/.eslintrc.js"
], ],
"reporter": [ "reporter": [
"text", "text",
"text-summary" "text-summary"
] ]
} }
} }

Loading…
Cancel
Save