From 1200962f6834db6774ec059fcb2edf12d5479134 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Mon, 21 Dec 2015 21:27:53 +0100 Subject: [PATCH 1/4] Update travis with container, caching and new node versions --- .travis.yml | 9 ++++++++- package.json | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 38927fd..8eda5d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ +sudo: false language: node_js + node_js: - "0.10" - "0.12" - - iojs + - "iojs" + - "4" + - "5" +cache: + directories: + - node_modules diff --git a/package.json b/package.json index 97eabaf..9ece508 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "url": "https://github.com/mcollina/fastfall/issues" }, "homepage": "https://github.com/mcollina/fastfall#readme", + "engines": { + "node": ">=0.10.0" + }, "devDependencies": { "async": "^1.0.0", "fastbench": "^1.0.0", From 8edb8e0ee8a93cec65dd21cb99fa349068b69f64 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Mon, 21 Dec 2015 21:28:30 +0100 Subject: [PATCH 2/4] Update dependancies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9ece508..9d59ea9 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "async": "^1.0.0", "fastbench": "^1.0.0", "faucet": "0.0.1", - "insync": "^1.0.0", + "insync": "^2.1.1", "neo-async": "^1.7.0", "pre-commit": "^1.0.10", "run-waterfall": "^1.1.1", From 645d85819f3c0fb42dff7e3832df00d2e84f8df2 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Mon, 21 Dec 2015 21:32:26 +0100 Subject: [PATCH 3/4] Setup Coverage --- .travis.yml | 4 ++++ package.json | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8eda5d1..b3cae87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,10 @@ node_js: - "iojs" - "4" - "5" + cache: directories: - node_modules + +after_script: + npm run coveralls \ No newline at end of file diff --git a/package.json b/package.json index 9d59ea9..eedc1ef 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "fall.js", "scripts": { "lint": "standard", - "test": "tape test.js | faucet" + "test": "tape test.js | faucet", + "coverage": "istanbul cover tape test.js | tap-spec", + "coveralls": "npm run coverage ; cat ./coverage/lcov.info | coveralls" }, "precommit": [ "lint", @@ -33,13 +35,16 @@ }, "devDependencies": { "async": "^1.0.0", + "coveralls": "^2.11.6", "fastbench": "^1.0.0", "faucet": "0.0.1", "insync": "^2.1.1", + "istanbul": "^0.4.1", "neo-async": "^1.7.0", "pre-commit": "^1.0.10", "run-waterfall": "^1.1.1", "standard": "^5.0.0", + "tap-spec": "^4.1.1", "tape": "^4.0.0", "waterfallize": "^1.0.0" }, From 273d4e230d834d2ef2d4078e7c6b463c2fe2efb4 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Tue, 22 Dec 2015 18:49:53 +0100 Subject: [PATCH 4/4] Add CI Badges to README --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 027881e..d88109e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ -# fastfall  [![Build Status](https://travis-ci.org/mcollina/fastfall.svg?branch=master)](https://travis-ci.org/mcollina/fastfall) +# fastfall +[![npm version][npm-badge]][npm-url] +[![Build Status][travis-badge]][travis-url] +[![Coverage Status][coveralls-badge]][coveralls-url] +[![Dependency Status][david-badge]][david-url] -call your callbacks in a waterfall, without overhead +## call your callbacks in a waterfall, without overhead Benchmark for doing 3 calls `setImmediate` 100 thousands times: @@ -216,3 +220,13 @@ function, too. Calls `done` when it has finished. ## License MIT + + +[npm-badge]: https://badge.fury.io/js/fastfall.svg +[npm-url]: https://badge.fury.io/js/fastfall +[travis-badge]: https://api.travis-ci.org/mcollina/fastfall.svg +[travis-url]: https://travis-ci.org/mcollina/fastfall +[coveralls-badge]:https://coveralls.io/repos/mcollina/fastfall/badge.svg?branch=master&service=github +[coveralls-url]: https://coveralls.io/github/mcollina/fastfall?branch=master +[david-badge]: https://david-dm.org/mcollina/fastfall.svg +[david-url]: https://david-dm.org/mcollina/fastfall