From 7aa67ab72b88f79058727830379738ac83b05c01 Mon Sep 17 00:00:00 2001 From: Haotian Chang Date: Sat, 2 Jul 2016 20:02:54 +1000 Subject: [PATCH] Add in travis-ci and coveralls. --- .travis.yml | 9 +++++++++ README.md | 16 ++++++++++++---- package.json | 6 +++++- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3850ac3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: node_js +node_js: + - 0.10 + - 0.12 + - iojs + - 4 + - 5 +after_success: + - npm run coveralls \ No newline at end of file diff --git a/README.md b/README.md index 37ed965..5a101d7 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,21 @@ You are welcome to contribute with more items provided below. ## ESLint Plugin

- - NPM Version + + NPM Version Downloads + alt="Downloads"> + + + Build Status + + + Coverage Status

If you're using [ESLint](http://eslint.org/), you can install a diff --git a/package.json b/package.json index 9351d9f..2b6e56b 100644 --- a/package.json +++ b/package.json @@ -19,13 +19,17 @@ ], "main": "lib/index.js", "scripts": { - "test": "mocha tests --recursive" + "coveralls": "cat ./reports/coverage/lcov.info | coveralls", + "test": "npm run unit-test", + "unit-test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --reporter dot" }, "dependencies": { "requireindex": "~1.1.0" }, "devDependencies": { + "coveralls": "^2.11.9", "eslint": "^3.0", + "istanbul": "^0.4.4", "mocha": "^2.5.3" }, "engines": {