Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A76449FD2 for ; Tue, 10 Apr 2012 19:15:23 +0000 (UTC) Received: (qmail 25534 invoked by uid 500); 10 Apr 2012 19:15:22 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 25213 invoked by uid 500); 10 Apr 2012 19:15:21 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 24512 invoked by uid 99); 10 Apr 2012 19:15:21 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:15:21 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 20038C221; Tue, 10 Apr 2012 19:15:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [49/50] git commit: got all tests working Message-Id: <20120410191521.20038C221@tyr.zones.apache.org> Date: Tue, 10 Apr 2012 19:15:21 +0000 (UTC) got all tests working Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/commit/e6ac18aa Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/tree/e6ac18aa Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/diff/e6ac18aa Branch: refs/heads/master Commit: e6ac18aaeed4cb43f674a0caa4c59dc768f64f9c Parents: 3e9b2c6 Author: stevengill Authored: Tue Jan 17 18:49:00 2012 -0800 Committer: stevengill Committed: Tue Jan 17 18:49:00 2012 -0800 ---------------------------------------------------------------------- coho | 2 +- test/tests.coffee | 19 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/e6ac18aa/coho ---------------------------------------------------------------------- diff --git a/coho b/coho index 3710fe1..7e205eb 100755 --- a/coho +++ b/coho @@ -23,7 +23,7 @@ child = exec("rm -rf temp && mkdir temp", function (error, stdout, stderr) { if (error !== null) { console.log('exec error: ' + error); } - exec("cd temp/ios/cordova-ios git archive master -o foo.zip", function (error, stdout, stderr) { + exec("cd temp/ios/cordova-ios && git archive master -o phonegap-"+VERSION+".zip", function (error, stdout, stderr) { console.log('stdout: ' + stdout); console.log('stderr: ' + stderr); if (error !== null) { http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/e6ac18aa/foo.zip ---------------------------------------------------------------------- diff --git a/foo.zip b/foo.zip deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/e6ac18aa/test/tests.coffee ---------------------------------------------------------------------- diff --git a/test/tests.coffee b/test/tests.coffee index c11ab40..f201a32 100644 --- a/test/tests.coffee +++ b/test/tests.coffee @@ -36,20 +36,17 @@ exports['confirm ios pull worked'] = (test)-> exports['check version number'] = (test)-> test.expect 1 - test.ok require('fs').readFile() fs = require('fs') - thetest = (err,data)-> - if VERSION != data - test.ok false, "VERSION file doesn't match release version" - test.done() - else - test.ok true, "VERSION file matches release version" - test.done() - - fs.readFile('./temp/ios/cordova-ios/PhoneGapLib/VERSION', thetest) + vFile = fs.readFileSync('./temp/ios/cordova-ios/PhoneGapLib/VERSION', 'ascii') + if vFile != VERSION + test.ok false, "VERSION file doesn't match release version" + test.done() + else + test.ok true, "VERSION file matches release version" + test.done() exports['zip exists'] = (test)-> test.expect 1 - test.ok require('path').existsSync("./phonegap-#{ VERSION }.zip") + test.ok require('path').existsSync("./temp/ios/cordova-ios/phonegap-#{ VERSION }.zip") test.done()