incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [49/50] git commit: got all tests working
Date Tue, 10 Apr 2012 19:15:21 GMT
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 <steve.gill@nitobi.com>
Authored: Tue Jan 17 18:49:00 2012 -0800
Committer: stevengill <steve.gill@nitobi.com>
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()


Mime
View raw message