From 3f8cf7cd58c2e038046a94c93636c0ec8444d10c Mon Sep 17 00:00:00 2001 From: Mingun Date: Sun, 17 Dec 2017 14:13:07 +0500 Subject: [PATCH] Add coveralls.io support --- .travis.yml | 3 +++ README.md | 1 + package.json | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fc2e4af..16d2ba4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,9 @@ node_js: before_script: - npm install -g gulp +after_success: + - npm run coverage + cache: directories: - node_modules diff --git a/README.md b/README.md index abf1533..1c29045 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![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) [![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) diff --git a/package.json b/package.json index f8446a6..feaad9e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "clean": "gulp clean", "test:impact": "node test/impact", "test:server": "node test/server/run", - "test": "nyc gulp" + "test": "nyc gulp", + "coverage": "nyc report --reporter=text-lcov | coveralls" }, "devDependencies": { "babel-preset-es2015": "6.24.1", @@ -39,6 +40,7 @@ "babelify": "8.0.0", "browserify": "14.5.0", "chai": "4.1.2", + "coveralls": "3.0.0", "del": "3.0.0", "eslint-config-futagozaryuu": "3.7.x", "express": "4.16.2", @@ -66,8 +68,8 @@ "**/.eslintrc.js" ], "reporter": [ - "text", - "text-summary" + "text", + "text-summary" ] } }