From cad73d1b1172883960451a001a7e1eac981ba23b Mon Sep 17 00:00:00 2001 From: devashish Date: Thu, 9 Oct 2014 17:13:08 +0530 Subject: [PATCH 01/48] fixing async calls and return objects --- index.js | 27 +++++++++++++++++++-------- shippable.yml | 2 +- test.js | 6 ++++-- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 67f211c..a1e78c4 100755 --- a/index.js +++ b/index.js @@ -2,10 +2,22 @@ var express = require("express"), nano = require('nano')('http://localhost:5984'), app = express(); -nano.db.destroy('test'); -nano.db.create('test'); +var db = null; +nano.db.destroy('test', function(){ + nano.db.create('test', function(err, body){ + if(err) { + console.log('Error creating database'); + console.log(err); + return; + } + db = nano.db.use('test'); + + app.listen(3000, function () { + console.log('Express listening on port 3000'); + }); + }); +}); -var db = nano.db.use('test'); app.get("/", function (req, res) { res.send("Hey buddy!"); @@ -16,17 +28,16 @@ app.get("/:name", function (req, res) { if (body === undefined) { db.insert({'name': req.params.name}, req.params.name, function(err, b) { if (err) { + console.log('Error creating a new thing'); + console.log(err); res.send(500); } else { - res.send("Created a new thing with name " + req.params.name); + res.send({returnObj: b, created:true}); } }); } else { - res.send(body); + res.send({returnObj: body, created:false}); } }); }); -app.listen(3000, function () { - console.log('Express listening on port 3000'); -}); diff --git a/shippable.yml b/shippable.yml index a5ede7a..662caa8 100755 --- a/shippable.yml +++ b/shippable.yml @@ -3,7 +3,7 @@ language: node_js # Version number node_js: - - 0.10.25 + - 0.10.31 # CouchDB binds to 127.0.0.1 by default services: diff --git a/test.js b/test.js index 6c69b23..7296498 100755 --- a/test.js +++ b/test.js @@ -19,8 +19,8 @@ describe("Persistence", function () { superagent.get("http://localhost:3000/doobie") .end(function (e, res) { (e === null).should.equal(true); - var response = (res.text.indexOf("new") !== -1); - expect(response).to.equal(true); + var response = res.body; + expect(response.created).to.equal(true); done(); }); }); @@ -29,6 +29,8 @@ describe("Persistence", function () { .end(function (e, res) { (e === null).should.equal(true); var response = res.body; + expect(response.created).to.equal(false); + response = response.returnObj; response.should.have.property("name", "doobie"); done(); }); From 237f56ebd4d6738c433ffee446a2c9c812a64edd Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 10:31:41 +0530 Subject: [PATCH 02/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 662caa8..f844160 100755 --- a/shippable.yml +++ b/shippable.yml @@ -26,3 +26,4 @@ script: after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ +archive: true From 7cc01c84c6dfa4d639afa6b1bbf32288e2e649f4 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 10:33:58 +0530 Subject: [PATCH 03/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index f844160..9399ba0 100755 --- a/shippable.yml +++ b/shippable.yml @@ -27,3 +27,4 @@ after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true +cache: true From a0a05372d7ceb02fb6b5f5c7ea49208ad2077e5d Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 10:35:02 +0530 Subject: [PATCH 04/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 9399ba0..d82b9ef 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,6 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 + - 0.11 # CouchDB binds to 127.0.0.1 by default services: From d7ba52a5487ad02de4468a67173db365993b146a Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 10:39:17 +0530 Subject: [PATCH 05/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index d82b9ef..9b8f4b6 100755 --- a/shippable.yml +++ b/shippable.yml @@ -28,4 +28,4 @@ after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true -cache: true +#cache: true From 7fa9e11961831e98631f48cb67e34712759965d5 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 11:04:36 +0530 Subject: [PATCH 06/48] Update shippable.yml --- shippable.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shippable.yml b/shippable.yml index 9b8f4b6..001b4d6 100755 --- a/shippable.yml +++ b/shippable.yml @@ -13,6 +13,7 @@ services: # The path for Xunit to output test reports env: - XUNIT_FILE=shippable/testresults/result.xml + # Create directories for test and coverage reports before_script: @@ -22,6 +23,7 @@ before_script: # Running the tests with grunt script: - grunt + - echo $COMPARE_COMMIT # Tell istanbul to generate a coverage report after_script: From f5e296c43c90fcea4e0d0846df4d0fdf48cd9dda Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 11:09:46 +0530 Subject: [PATCH 07/48] Update shippable.yml --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 001b4d6..6c43da9 100755 --- a/shippable.yml +++ b/shippable.yml @@ -23,7 +23,8 @@ before_script: # Running the tests with grunt script: - grunt - - echo $COMPARE_COMMIT + - echo $COMPARE_URL + - echo $LAST_SUCCESSFUL_BUILD_TIMESTAMP # Tell istanbul to generate a coverage report after_script: From 5b3cdfb50f08f2182455fa6800691832e73cd60e Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 11:14:14 +0530 Subject: [PATCH 08/48] [skip ci] --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 6c43da9..4aa36db 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,7 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 - - 0.11 + # - 0.11 # CouchDB binds to 127.0.0.1 by default services: From f780165a10cf9e1fdd34dd7ba662890b8814adff Mon Sep 17 00:00:00 2001 From: csharp Date: Fri, 10 Oct 2014 11:15:30 +0530 Subject: [PATCH 09/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 7296498..1c755e8 100755 --- a/test.js +++ b/test.js @@ -31,7 +31,7 @@ describe("Persistence", function () { var response = res.body; expect(response.created).to.equal(false); response = response.returnObj; - response.should.have.property("name", "doobie"); + response.should.have.property("name", "dooie"); done(); }); }); From 7becd99b65db8f673a0feb3df8178c696631eb08 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 11:16:57 +0530 Subject: [PATCH 10/48] Update shippable.yml --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 4aa36db..073b007 100755 --- a/shippable.yml +++ b/shippable.yml @@ -10,6 +10,7 @@ node_js: services: - couchdb + # The path for Xunit to output test reports env: - XUNIT_FILE=shippable/testresults/result.xml @@ -31,4 +32,4 @@ after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true -#cache: true +cache: true From 5264fc7fbd28bbafc7966adf5f7eb6bd7c2923d0 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 11:19:29 +0530 Subject: [PATCH 11/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 073b007..e1dd1ea 100755 --- a/shippable.yml +++ b/shippable.yml @@ -26,6 +26,7 @@ script: - grunt - echo $COMPARE_URL - echo $LAST_SUCCESSFUL_BUILD_TIMESTAMP + - sleep 10s # Tell istanbul to generate a coverage report after_script: From d4aa527b3070af638e06b4ec1c67fdd8207f9007 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 12:29:36 +0530 Subject: [PATCH 12/48] Update shippable.yml --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index e1dd1ea..a377021 100755 --- a/shippable.yml +++ b/shippable.yml @@ -26,11 +26,12 @@ script: - grunt - echo $COMPARE_URL - echo $LAST_SUCCESSFUL_BUILD_TIMESTAMP - - sleep 10s + # Tell istanbul to generate a coverage report after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true + cache: true From e532356fdf2f16635d8d473ad438d9dd97aa18ed Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 10 Oct 2014 17:46:29 +0530 Subject: [PATCH 13/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index a377021..968a0de 100755 --- a/shippable.yml +++ b/shippable.yml @@ -34,4 +34,4 @@ after_script: - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true -cache: true +#cache: true From 94468762400ebe3681b93795ce2b17bacc9ce7e9 Mon Sep 17 00:00:00 2001 From: csharp Date: Tue, 14 Oct 2014 15:45:13 +0530 Subject: [PATCH 14/48] Update shippable.yml --- shippable.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shippable.yml b/shippable.yml index 4aa36db..43d25ca 100755 --- a/shippable.yml +++ b/shippable.yml @@ -12,7 +12,9 @@ services: # The path for Xunit to output test reports env: + global: - XUNIT_FILE=shippable/testresults/result.xml + - secure: pHx5dR/qpqAnTJo5GCm7FUzD5YVvmB+y5YmcrGK09TQtBsi3d+p9dyf6V0DnsuJy8gIDS71YnDjbnycdqnKgGevjul4fQkWF+T52DvF49q5PbkDkqAbzo2HIr2VIOboutuhSy+FwlQb7aGjq9/AHTKlQSubFCjqvouB1uw7R9thsvUBnW/Ea+h39W4+0mzpLp9k6tmCAGkj/tGEMXgiZQvjX/3wvM45F3x5eGl+2bkxRELSr51NJAcBYC8+6k5svo6utNKQFhBE2HxFwpkJsJEh4oSOMf0GqWs0Vea7RRlA3lLJ116gQNKh7GuKLgxXN38w+GXPU8beIRZfHTpCHNw== # Create directories for test and coverage reports @@ -28,6 +30,7 @@ script: # Tell istanbul to generate a coverage report after_script: + - echo $test - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true From 4ee89dc9d28f4525ec4994b3e2ffd573f846d0e0 Mon Sep 17 00:00:00 2001 From: csharp Date: Tue, 14 Oct 2014 15:48:35 +0530 Subject: [PATCH 15/48] Update shippable.yml --- shippable.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index 43d25ca..42c2d1e 100755 --- a/shippable.yml +++ b/shippable.yml @@ -14,7 +14,8 @@ services: env: global: - XUNIT_FILE=shippable/testresults/result.xml - - secure: pHx5dR/qpqAnTJo5GCm7FUzD5YVvmB+y5YmcrGK09TQtBsi3d+p9dyf6V0DnsuJy8gIDS71YnDjbnycdqnKgGevjul4fQkWF+T52DvF49q5PbkDkqAbzo2HIr2VIOboutuhSy+FwlQb7aGjq9/AHTKlQSubFCjqvouB1uw7R9thsvUBnW/Ea+h39W4+0mzpLp9k6tmCAGkj/tGEMXgiZQvjX/3wvM45F3x5eGl+2bkxRELSr51NJAcBYC8+6k5svo6utNKQFhBE2HxFwpkJsJEh4oSOMf0GqWs0Vea7RRlA3lLJ116gQNKh7GuKLgxXN38w+GXPU8beIRZfHTpCHNw== + - secure: eHd8W6oPZ5x+yYmIrvrPh8EdON1J6Sdf0JthhAqWtisKJirbNbnnBsC6d4RlKUVPU20g1g66EvtJfzLJbihB2ZUfTqsI09Q/L4eDh+l3Gp1mWfvaL9YaVDID7pkVsBPFPw8mQtMzBf2AZeeWwM5ydrGO0yngUmUqDcy3oKDZzyyMw2aJKXJk1Wr1M9TGpGf/Rgvt59KyKY7yf8QN8l+Zsnc/IS5Lz2FgD2l4XUNSxbkSdZ0wFw2kV/9KidR7CpgO+GanZHtZCrUQRCVF4SC4djV4X9X34T9uQSSgFm10lmn37KXIYJN4YI7LrsQMMb2V0dUPDgDiTIKfOzs8o1cxnQ== + #- secure: pHx5dR/qpqAnTJo5GCm7FUzD5YVvmB+y5YmcrGK09TQtBsi3d+p9dyf6V0DnsuJy8gIDS71YnDjbnycdqnKgGevjul4fQkWF+T52DvF49q5PbkDkqAbzo2HIr2VIOboutuhSy+FwlQb7aGjq9/AHTKlQSubFCjqvouB1uw7R9thsvUBnW/Ea+h39W4+0mzpLp9k6tmCAGkj/tGEMXgiZQvjX/3wvM45F3x5eGl+2bkxRELSr51NJAcBYC8+6k5svo6utNKQFhBE2HxFwpkJsJEh4oSOMf0GqWs0Vea7RRlA3lLJ116gQNKh7GuKLgxXN38w+GXPU8beIRZfHTpCHNw== # Create directories for test and coverage reports @@ -30,7 +31,7 @@ script: # Tell istanbul to generate a coverage report after_script: - - echo $test + - echo $key - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true From 6a7cf165eb23275c45175c4a2270adb01ac78108 Mon Sep 17 00:00:00 2001 From: buildsample Date: Thu, 16 Oct 2014 18:07:27 +0530 Subject: [PATCH 16/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 968a0de..643f3d3 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,7 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 - # - 0.11 + - 0.11 # CouchDB binds to 127.0.0.1 by default services: From 2b7776b0107891ece87f6057fa980a12da9a6e56 Mon Sep 17 00:00:00 2001 From: csharp Date: Thu, 16 Oct 2014 18:26:37 +0530 Subject: [PATCH 17/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 42c2d1e..cb1d6b4 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,7 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 - # - 0.11 + - 0.11 # CouchDB binds to 127.0.0.1 by default services: From fa0c53010c0c87001bb6cd135f6688607a2021e8 Mon Sep 17 00:00:00 2001 From: csharp Date: Fri, 17 Oct 2014 12:51:23 +0530 Subject: [PATCH 18/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 1c755e8..7296498 100755 --- a/test.js +++ b/test.js @@ -31,7 +31,7 @@ describe("Persistence", function () { var response = res.body; expect(response.created).to.equal(false); response = response.returnObj; - response.should.have.property("name", "dooie"); + response.should.have.property("name", "doobie"); done(); }); }); From 8ea061ee82cee9bbb82d4d5ce4d8e71f4048b8cb Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 12:54:15 +0530 Subject: [PATCH 19/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 643f3d3..40332af 100755 --- a/shippable.yml +++ b/shippable.yml @@ -2,7 +2,7 @@ language: node_js # Version number -node_js: +node_js - 0.10.31 - 0.11 From ed891c310247ab63f9b203bfe224fff1699188ec Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 13:03:43 +0530 Subject: [PATCH 20/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 5792a94..5952cd0 100755 --- a/shippable.yml +++ b/shippable.yml @@ -2,7 +2,7 @@ language: node_js # Version number -node_js +node_js: - 0.10.31 - 0.11 From 4c8980f9ac8137e9899844f2a75f35208f43aff9 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 14:38:45 +0530 Subject: [PATCH 21/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 5952cd0..07c30ba 100755 --- a/shippable.yml +++ b/shippable.yml @@ -11,6 +11,7 @@ services: - couchdb + # The path for Xunit to output test reports env: global: From c374aa062319c8f53b4e5e5efbd4bf029be2f420 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 14:41:08 +0530 Subject: [PATCH 22/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 07c30ba..1317e72 100755 --- a/shippable.yml +++ b/shippable.yml @@ -12,6 +12,7 @@ services: + # The path for Xunit to output test reports env: global: From a7232d7ab81d83a5d1eec6cd903ba86de7ea9afe Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 15:01:49 +0530 Subject: [PATCH 23/48] Update shippable.yml --- shippable.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index 1317e72..5952cd0 100755 --- a/shippable.yml +++ b/shippable.yml @@ -11,8 +11,6 @@ services: - couchdb - - # The path for Xunit to output test reports env: global: From ebcadff9978d00208f479f0db46775564cc4d66f Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Oct 2014 15:06:49 +0530 Subject: [PATCH 24/48] Update shippable.yml --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 5952cd0..e0adece 100755 --- a/shippable.yml +++ b/shippable.yml @@ -10,7 +10,6 @@ node_js: services: - couchdb - # The path for Xunit to output test reports env: global: From 311d877c807f362a1d5cb06d69238816b5ed5f43 Mon Sep 17 00:00:00 2001 From: vidyaraghav Date: Mon, 27 Oct 2014 11:58:07 +0530 Subject: [PATCH 25/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 7296498..6fc5958 100755 --- a/test.js +++ b/test.js @@ -8,7 +8,7 @@ describe("Index", function () { superagent.get("http://localhost:3000/") .end(function (e, res) { (e === null).should.equal(true); - res.text.should.equal("Hey buddy!"); + res.text.should.equal("Hey budy!"); done(); }); }); From 7a762f7236c1a51ef10304e9e88a66f18b64ee3e Mon Sep 17 00:00:00 2001 From: vidyaraghav Date: Mon, 27 Oct 2014 12:12:29 +0530 Subject: [PATCH 26/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 6fc5958..7296498 100755 --- a/test.js +++ b/test.js @@ -8,7 +8,7 @@ describe("Index", function () { superagent.get("http://localhost:3000/") .end(function (e, res) { (e === null).should.equal(true); - res.text.should.equal("Hey budy!"); + res.text.should.equal("Hey buddy!"); done(); }); }); From 4449db685153e4e8c6e2d7f44179092baa8495e3 Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 4 Nov 2014 18:09:28 +0530 Subject: [PATCH 27/48] When using Rails to truncate strings, you may end up with strings that are still too long for their container or are not as long as they could be. You can get a prettier result using stylesheets.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it When using Rails to truncate strings, you may end up with strings that are still too long for their container or are not as long as they could be. You can get a prettier result using stylesheets.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it.This is a new commit message that I am telling to my shippable app to take only a few characters and do the build. What basically i have done here is added a new commit message that is really long and experimenting on it --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index e0adece..44d9468 100755 --- a/shippable.yml +++ b/shippable.yml @@ -6,6 +6,7 @@ node_js: - 0.10.31 - 0.11 + # CouchDB binds to 127.0.0.1 by default services: - couchdb From 0cd7924b149b1950d963d4bebeb34586777fbcc3 Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 4 Nov 2014 18:16:05 +0530 Subject: [PATCH 28/48] Update shippable.yml When using Rails to truncate strings, you may end up with strings that are still too long for their container or are not as long as they could be. You can get a prettier result using stylesheets. --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 44d9468..e0adece 100755 --- a/shippable.yml +++ b/shippable.yml @@ -6,7 +6,6 @@ node_js: - 0.10.31 - 0.11 - # CouchDB binds to 127.0.0.1 by default services: - couchdb From 0e2bb68345f278bc3c85b5aa96e86b10e6517228 Mon Sep 17 00:00:00 2001 From: buildsample Date: Thu, 20 Nov 2014 18:19:40 +0530 Subject: [PATCH 29/48] [shippable new build status flow] --- shippable.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shippable.yml b/shippable.yml index e0adece..dcea485 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,6 +1,7 @@ # Language setting language: node_js + # Version number node_js: - 0.10.31 @@ -37,4 +38,5 @@ after_script: - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ archive: true + #cache: true From 00797c1bc769f81212cbc9b1c45d8c5f72cde9cb Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 16 Dec 2014 13:29:17 +0530 Subject: [PATCH 30/48] Update shippable.yml --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index dcea485..b80beeb 100755 --- a/shippable.yml +++ b/shippable.yml @@ -17,7 +17,7 @@ env: - XUNIT_FILE=shippable/testresults/result.xml - secure: eHd8W6oPZ5x+yYmIrvrPh8EdON1J6Sdf0JthhAqWtisKJirbNbnnBsC6d4RlKUVPU20g1g66EvtJfzLJbihB2ZUfTqsI09Q/L4eDh+l3Gp1mWfvaL9YaVDID7pkVsBPFPw8mQtMzBf2AZeeWwM5ydrGO0yngUmUqDcy3oKDZzyyMw2aJKXJk1Wr1M9TGpGf/Rgvt59KyKY7yf8QN8l+Zsnc/IS5Lz2FgD2l4XUNSxbkSdZ0wFw2kV/9KidR7CpgO+GanZHtZCrUQRCVF4SC4djV4X9X34T9uQSSgFm10lmn37KXIYJN4YI7LrsQMMb2V0dUPDgDiTIKfOzs8o1cxnQ== #- secure: pHx5dR/qpqAnTJo5GCm7FUzD5YVvmB+y5YmcrGK09TQtBsi3d+p9dyf6V0DnsuJy8gIDS71YnDjbnycdqnKgGevjul4fQkWF+T52DvF49q5PbkDkqAbzo2HIr2VIOboutuhSy+FwlQb7aGjq9/AHTKlQSubFCjqvouB1uw7R9thsvUBnW/Ea+h39W4+0mzpLp9k6tmCAGkj/tGEMXgiZQvjX/3wvM45F3x5eGl+2bkxRELSr51NJAcBYC8+6k5svo6utNKQFhBE2HxFwpkJsJEh4oSOMf0GqWs0Vea7RRlA3lLJ116gQNKh7GuKLgxXN38w+GXPU8beIRZfHTpCHNw== - + - secure: nSB5a9lUKw2vzoKmT2iqCPrj8qFcfTB3Uox8DRPMxXGu5A9M/OaEZMEGoBEEdRjWTlJOGRtc4hdkSdPRtJ6pGzTbCK3p+Du1kwO/7QukWDiNEB+dSOxBdbh0mZXVqlOwJLZ2npI5KROpRCCe2qxah/NnMvc5qqcdCkSZf9uhQqm+RbYCwPs/xZqK857whtnHiqvTOnEojBH0Hb2lBLsolRMfpH19UFAvh1XAf4nq+mNZZoaSCFc8LEovfnXPUTbJXtWWzpJKy2ncg98MtRKerxOTUpl7uVbOuGtIDu8ikQ1QzFwOTaM+f2Gz6Tyky/dV28D95Q9Oc6s5vM5Ea3rSzg== # Create directories for test and coverage reports before_script: @@ -29,6 +29,7 @@ script: - grunt - echo $COMPARE_URL - echo $LAST_SUCCESSFUL_BUILD_TIMESTAMP + - echo $key1 and $key2 # Tell istanbul to generate a coverage report From 51121ee600338dbc441b8839ffa242cbc2241c5a Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 12:39:30 +0530 Subject: [PATCH 31/48] testing pr --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index b80beeb..c68b662 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,7 +1,6 @@ # Language setting language: node_js - # Version number node_js: - 0.10.31 @@ -11,6 +10,7 @@ node_js: services: - couchdb +#test pr1 # The path for Xunit to output test reports env: global: @@ -37,6 +37,7 @@ after_script: - echo $key - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ + archive: true From e1ad7937780fad440a5649121b49e9a4fde47f22 Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 12:44:44 +0530 Subject: [PATCH 32/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 7296498..286dfbe 100755 --- a/test.js +++ b/test.js @@ -31,7 +31,7 @@ describe("Persistence", function () { var response = res.body; expect(response.created).to.equal(false); response = response.returnObj; - response.should.have.property("name", "doobie"); + response.should.have.property("name", "dobie"); done(); }); }); From f5ae58aeedf8ffa15e40d6261052dde448ca459a Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 12:51:59 +0530 Subject: [PATCH 33/48] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f01d5fe..4d94909 100755 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ Implements a simple web application using CouchDB, with tests. Uses Grunt to run tests against an Express server, then generates reports with Xunit and Istanbul. This sample is built for Shippable, a docker based continuous integration and deployment platform. +[![Build Status](https://api.shippable.com/projects/54aa3515d46935d5fbc17450/badge?branchName=master)](https://app.shippable.com/projects/54aa3515d46935d5fbc17450/builds/latest) From 50fe05b0f39aec416b798843976d58be50e96732 Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 13:02:07 +0530 Subject: [PATCH 34/48] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index c68b662..a143098 100755 --- a/shippable.yml +++ b/shippable.yml @@ -37,6 +37,7 @@ after_script: - echo $key - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ + - echo $BUILD_NUMBER archive: true From 3b83ecdff4d6e0f6869488659f53ff26376162f9 Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 13:07:14 +0530 Subject: [PATCH 35/48] Update test.js --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 286dfbe..7296498 100755 --- a/test.js +++ b/test.js @@ -31,7 +31,7 @@ describe("Persistence", function () { var response = res.body; expect(response.created).to.equal(false); response = response.returnObj; - response.should.have.property("name", "dobie"); + response.should.have.property("name", "doobie"); done(); }); }); From 094c9c6f31d3610b03c42c8055522aa08d0c213a Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 5 Jan 2015 13:10:44 +0530 Subject: [PATCH 36/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index a143098..5f9625a 100755 --- a/shippable.yml +++ b/shippable.yml @@ -38,7 +38,7 @@ after_script: - ./node_modules/.bin/istanbul cover grunt -- -u tdd - ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/ - echo $BUILD_NUMBER - + - echo $BUILD_URL archive: true From 460833164e3a660e07dbcda7dce4b601b05e69f6 Mon Sep 17 00:00:00 2001 From: buildsample Date: Wed, 7 Jan 2015 15:23:58 +0530 Subject: [PATCH 37/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 5f9625a..870e16a 100755 --- a/shippable.yml +++ b/shippable.yml @@ -41,5 +41,5 @@ after_script: - echo $BUILD_URL archive: true - +build_image: shippable/minv2:beta #cache: true From 20380999a481a22737dbf86e17ce0b1467095da4 Mon Sep 17 00:00:00 2001 From: buildsample Date: Wed, 14 Jan 2015 14:19:06 +0530 Subject: [PATCH 38/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 870e16a..3322d43 100755 --- a/shippable.yml +++ b/shippable.yml @@ -41,5 +41,5 @@ after_script: - echo $BUILD_URL archive: true -build_image: shippable/minv2:beta +#build_image: shippable/minv2:beta #cache: true From 67e50e4b93119b268142f1bb585c55e0f217c217 Mon Sep 17 00:00:00 2001 From: buildsample Date: Mon, 19 Jan 2015 13:01:54 +0530 Subject: [PATCH 39/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 3322d43..870e16a 100755 --- a/shippable.yml +++ b/shippable.yml @@ -41,5 +41,5 @@ after_script: - echo $BUILD_URL archive: true -#build_image: shippable/minv2:beta +build_image: shippable/minv2:beta #cache: true From be7c63d96e3a0d868d1d3881a19bcabfeb57556b Mon Sep 17 00:00:00 2001 From: buildsample Date: Thu, 29 Jan 2015 16:46:34 +0530 Subject: [PATCH 40/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 870e16a..3322d43 100755 --- a/shippable.yml +++ b/shippable.yml @@ -41,5 +41,5 @@ after_script: - echo $BUILD_URL archive: true -build_image: shippable/minv2:beta +#build_image: shippable/minv2:beta #cache: true From 4ac627f3ed2a1151b7f47c00c70a4cb4fe1c9ed0 Mon Sep 17 00:00:00 2001 From: buildsample Date: Thu, 5 Mar 2015 17:49:23 +0530 Subject: [PATCH 41/48] [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d94909..48d66ea 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ Node.js CouchDB Sample ================= + Implements a simple web application using CouchDB, with tests. Uses Grunt to run tests against an Express server, then generates reports with Xunit and Istanbul. From afae341c9b11dd3d5941a80e080b3c0006e116b7 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Apr 2015 12:06:34 +0530 Subject: [PATCH 42/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 3322d43..5a58024 100755 --- a/shippable.yml +++ b/shippable.yml @@ -42,4 +42,4 @@ after_script: archive: true #build_image: shippable/minv2:beta -#cache: true +cache: true From 95d04ef553e12d77354e2bf877d2ea4399437c63 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 17 Apr 2015 12:09:35 +0530 Subject: [PATCH 43/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 5a58024..419082d 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,7 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 - - 0.11 +# - 0.11 # CouchDB binds to 127.0.0.1 by default services: From 5e7caa932a48336995c30948e74ce83122adda02 Mon Sep 17 00:00:00 2001 From: buildsample Date: Wed, 13 May 2015 11:02:59 +0530 Subject: [PATCH 44/48] Update shippable.yml --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 419082d..8a8adaa 100755 --- a/shippable.yml +++ b/shippable.yml @@ -31,7 +31,6 @@ script: - echo $LAST_SUCCESSFUL_BUILD_TIMESTAMP - echo $key1 and $key2 - # Tell istanbul to generate a coverage report after_script: - echo $key From 85d8afcb764b18a3ffef40c4f4e7d68244c81eeb Mon Sep 17 00:00:00 2001 From: buildsample Date: Thu, 14 May 2015 11:45:47 +0530 Subject: [PATCH 45/48] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48d66ea..9e798fe 100755 --- a/README.md +++ b/README.md @@ -7,4 +7,6 @@ Implements a simple web application using CouchDB, with tests. Uses Grunt to run tests against an Express server, then generates reports with Xunit and Istanbul. This sample is built for Shippable, a docker based continuous integration and deployment platform. -[![Build Status](https://api.shippable.com/projects/54aa3515d46935d5fbc17450/badge?branchName=master)](https://app.shippable.com/projects/54aa3515d46935d5fbc17450/builds/latest) + + +[![Build Status](https://api.shippable.com/projects/54d9cce25ab6cc13528b686e/badge?branchName=master)](https://app.shippable.com/projects/54d9cce25ab6cc13528b686e/builds/latest) From cb67879ba045c4d2b6962ddb2d16a422b3648683 Mon Sep 17 00:00:00 2001 From: buildsample Date: Wed, 7 Oct 2015 11:20:55 +0530 Subject: [PATCH 46/48] [reset_minion] --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 8a8adaa..94eb764 100755 --- a/shippable.yml +++ b/shippable.yml @@ -41,4 +41,4 @@ after_script: archive: true #build_image: shippable/minv2:beta -cache: true +#cache: true From e416bf924da5474e0aad06756ee7c09bc79b3bf4 Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 30 Oct 2015 15:29:08 +0530 Subject: [PATCH 47/48] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e798fe..3b53b70 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Node.js CouchDB Sample +Node.js CouchDB test Sample ================= From c544727d5dc7d7565c1a1b5a59a7200b6b20003f Mon Sep 17 00:00:00 2001 From: buildsample Date: Fri, 18 Dec 2015 17:22:36 +0530 Subject: [PATCH 48/48] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 94eb764..76e4aac 100755 --- a/shippable.yml +++ b/shippable.yml @@ -4,7 +4,7 @@ language: node_js # Version number node_js: - 0.10.31 -# - 0.11 + - 0.11 # CouchDB binds to 127.0.0.1 by default services: