From 78b3c3884f936a3af5f671d95bfb19e3e5b31cb3 Mon Sep 17 00:00:00 2001 From: Dave Brotherstone Date: Sun, 9 Aug 2015 11:51:06 +0200 Subject: [PATCH 1/3] Add coveralls support + coverage badge to readme Travis does an npm install automatically, so removed this and replaced it with a npm run coveralls, which runs the tests and submits the coverage to coveralls. This commit still references bruderstein/react-select, this needs to be changed before merging --- .coveralls.yml | 2 ++ .travis.yml | 4 ++-- README.md | 2 ++ package.json | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000000..73e92220e2 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service-name: travis-ci +repo_token: E5QWqFbnwYOHriRajRrbX4T48xcTRq4Hh 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..a419a9495c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Coverage Status](https://coveralls.io/repos/bruderstein/react-select/badge.svg?branch=master&service=github)](https://coveralls.io/github/bruderstein/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", From d95b8d8e20770a372f5ac2330cf1256dc092b8db Mon Sep 17 00:00:00 2001 From: Dave Brotherstone Date: Sun, 9 Aug 2015 11:56:11 +0200 Subject: [PATCH 2/3] Add build-status badge from travis-ci to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a419a9495c..7fe22a8ea0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://travis-ci.org/bruderstein/react-select.svg?branch=master)](https://travis-ci.org/bruderstein/react-select) [![Coverage Status](https://coveralls.io/repos/bruderstein/react-select/badge.svg?branch=master&service=github)](https://coveralls.io/github/bruderstein/react-select?branch=master) React-Select From 97faa97a75360a7a81410ba345e56048e3b3d9b6 Mon Sep 17 00:00:00 2001 From: Dave Brotherstone Date: Sun, 9 Aug 2015 15:44:43 +0200 Subject: [PATCH 3/3] Update links and API to JedWatson/react-select --- .coveralls.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.coveralls.yml b/.coveralls.yml index 73e92220e2..6c493c85ba 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,2 +1,2 @@ service-name: travis-ci -repo_token: E5QWqFbnwYOHriRajRrbX4T48xcTRq4Hh +repo_token: itdMRdBNgDK8Gb5nIA63zVMEryaxTQxkR diff --git a/README.md b/README.md index 7fe22a8ea0..c7ba649f44 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Build Status](https://travis-ci.org/bruderstein/react-select.svg?branch=master)](https://travis-ci.org/bruderstein/react-select) -[![Coverage Status](https://coveralls.io/repos/bruderstein/react-select/badge.svg?branch=master&service=github)](https://coveralls.io/github/bruderstein/react-select?branch=master) +[![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 ============