diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000000..6c493c85ba --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service-name: travis-ci +repo_token: itdMRdBNgDK8Gb5nIA63zVMEryaxTQxkR diff --git a/.travis.yml b/.travis.yml index 0e237facbc..5b9f1638ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,5 @@ node_js: - "0.11" - "0.12" - "iojs-v2.5.0" -before_script: - - npm install +script: + - npm run coveralls diff --git a/README.md b/README.md index 6195146d8d..c7ba649f44 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](https://travis-ci.org/JedWatson/react-select.svg?branch=master)](https://travis-ci.org/JedWatson/react-select) +[![Coverage Status](https://coveralls.io/repos/JedWatson/react-select/badge.svg?branch=master&service=github)](https://coveralls.io/github/JedWatson/react-select?branch=master) + React-Select ============ diff --git a/package.json b/package.json index a2c18aab85..a9427f26f2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "babel": "^5.6.14", "babel-eslint": "^3.1.23", "chai": "^3.0.0", + "coveralls": "^2.11.3", "eslint": "^0.24.1", "eslint-plugin-react": "^2.7.0", "gulp": "^3.9.0", @@ -45,6 +46,7 @@ "bump:major": "gulp bump:major", "bump:minor": "gulp bump:minor", "cover": "istanbul cover node_modules/.bin/_mocha -- -u exports --compilers js:babel/register -R spec", + "coveralls": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -u exports --compilers js:babel/register -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "examples": "gulp dev:server", "lint": "eslint .", "publish:examples": "gulp publish:examples",