From 7048aed5415c33a297b5ad2cfac133c3681408af Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Tue, 15 Sep 2015 17:46:01 +0530 Subject: [PATCH] Added travis and coveralls --- .coveralls.yml | 0 .travis.yml | 6 ++++++ package.json | 6 ++++-- test/implementation/storage/blog.sqlite3 | Bin 98304 -> 98304 bytes 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml create mode 100644 .travis.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..e69de29b diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..bbe5d54c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "iojs" +sudo: false +install: + - npm install diff --git a/package.json b/package.json index 3f47a2af..f1992961 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,18 @@ "description": "Database Orm for adonis framework", "main": "index.js", "scripts": { - "test": "iojs ./node_modules/mocha/bin/mocha --harmony_proxies test/implementation test/unit --bail", - "coverage": "iojs --harmony_proxies node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha test/implementation test/unit --bail" + "test": "node --harmony_proxies node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/implementation test/unit && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", + "coverage": "node --harmony_proxies node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha test/implementation test/unit --bail" }, "author": "", "license": "ISC", "devDependencies": { "chai": "^3.2.0", "co": "^4.6.0", + "coveralls": "^2.11.4", "loadtest": "^1.2.14", "mocha": "^2.3.0", + "mocha-lcov-reporter": "0.0.2", "mysql": "^2.9.0", "sqlite3": "git://github.com/kkoopa/node-sqlite3.git#nan2" }, diff --git a/test/implementation/storage/blog.sqlite3 b/test/implementation/storage/blog.sqlite3 index 2fd69a1d73a63081fefad3b69f29ed0434c9b60b..7df50970cad7d1cf52dab2b793ae0522c7c32041 100644 GIT binary patch delta 305 zcmZo@U~6b#n;^~jf1->th9p`fX#OPHDYKCbm3JU`rz#5vA zSe29ru|F1Ue-fBXR|JUX#oHL delta 61 zcmV-D0K)%(fChko29O&8*pVDV0obu%q<;fac2JWCfTgi