cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/4] git commit: updated tests and coho
Date Fri, 09 Nov 2012 00:36:38 GMT
Updated Branches:
  refs/heads/master a22dbedfb -> 75dc7812a


updated tests and coho


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/75dc7812
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/tree/75dc7812
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/diff/75dc7812

Branch: refs/heads/master
Commit: 75dc7812a8349e57713060d017858bd13a9406d9
Parents: 5f8efbe
Author: steven gill <steven@apache.org>
Authored: Thu Nov 8 16:35:53 2012 -0800
Committer: steven gill <steven@apache.org>
Committed: Thu Nov 8 16:35:53 2012 -0800

----------------------------------------------------------------------
 coho              |    2 +-
 package.json      |   14 ++++---
 test/tests.coffee |  110 ++++++++++++++++++++++++++++++++++++++++++++----
 3 files changed, 110 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/75dc7812/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index f12f898..806356e 100755
--- a/coho
+++ b/coho
@@ -45,7 +45,7 @@ var util           = require('util')
 ,   blackberrydir  = 'incubator-cordova-blackberry-webworks'
 ,   androiddir	   = 'incubator-cordova-android'
 ,	windowsphdir   = 'incubator-cordova-wp7'
-,   windowsdir	   = 'incubator-cordova-wp7'
+,   windowsdir	   = 'incubator-cordova-windows'
 ,   webosdir	   = 'incubator-cordova-webos'
 ,   badadir        = 'incubator-cordova-bada'
 ,   badaWacdir	   = 'incubator-cordova-bada-wac'

http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/75dc7812/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 7326549..deee5c2 100644
--- a/package.json
+++ b/package.json
@@ -1,20 +1,22 @@
 {
   "name": "coho",
-  "version": "0.0.0",
-  "description": "Apache Cordova Release Tool",
-  "main": "coho",
+  "version": "0.0.1",
+  "description": "apache cordova release tool",
+  "main": "./coho",
   "directories": {
     "test": "test"
   },
   "devDependencies": {
-    "coffee-script": "~1.2.0"
+    "coffee-script": ">=1.2.0",
+    "nodeunit": "0.7.4"
   },
   "scripts": {
-    "test": "coho all 2.1.0 2.0.0"
+    "start": "./coho all 2.2.0 2.1.0",
+    "test": "make"
   },
   "repository": {
     "type": "git",
-    "url": "git://github.com/stevengill/coho.git"
+    "url": "https://git-wip-us.apache.org/repos/asf/incubator-cordova-coho.git"
   },
   "keywords": [
     "phonegap"

http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/75dc7812/test/tests.coffee
----------------------------------------------------------------------
diff --git a/test/tests.coffee b/test/tests.coffee
index f4b34a8..bdc303e 100644
--- a/test/tests.coffee
+++ b/test/tests.coffee
@@ -1,5 +1,5 @@
-VERSION = '1.8.0'
-oldVersion = '1.7.0'
+VERSION = '2.2.0'
+oldVersion = '2.1.0'
 
 exports['sanity test'] = (test)-> 
     test.expect 1
@@ -99,7 +99,13 @@ exports['confirm blackberry clone worked'] = (test)->
 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-blackberry-webworks/VERSION")
 	test.done()
 
-exports['confirm windows clone worked'] = (test)->
+exports['confirm windows 8 clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-windows/windows8/VERSION")
+	test.done()
+
+exports['confirm windows phone clone worked'] = (test)->
 	test.expect 1
 	fs = require('fs')
 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-wp7/VERSION")
@@ -117,6 +123,12 @@ exports['confirm bada clone worked'] = (test)->
 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-bada/VERSION")
 	test.done()
 
+exports['confirm bada-wac clone worked'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	test.ok fs.existsSync("./temp/repositories/incubator-cordova-bada-wac/VERSION")
+	test.done()
+
 exports['confirm docs clone worked'] = (test)->
 	test.expect 1
 	fs = require('fs')
@@ -153,10 +165,20 @@ exports['check blackberry version number'] = (test)->
 		test.ok true, "VERSION file matches release version"
 		test.done()
 
-exports['check windows version number'] = (test)->
+exports['check windows 8 version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-windows/windows8/VERSION', 'ascii')
!= 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['check windows phone version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
-	if fs.readFileSync('./temp/repositories/incubator-cordova-wp7/VERSION', 'ascii') != VERSION+"\n"
+	if fs.readFileSync('./temp/repositories/incubator-cordova-wp7/VERSION', 'ascii') != VERSION
 		test.ok false, "VERSION file doesn't match release version"
 		test.done()
 	else
@@ -173,6 +195,16 @@ exports['check webos version number'] = (test)->
 		test.ok true, "VERSION file matches release version"
 		test.done()
 
+exports['check bada-wac version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-bada-wac/VERSION', 'ascii') !=
VERSION+"\n"
+		test.ok false, "VERSION file doesn't match release version"
+		test.done()
+	else
+		test.ok true, "VERSION file matches release version"
+		test.done()
+
 exports['check bada version number'] = (test)->
 	test.expect 1
 	fs = require('fs')
@@ -193,8 +225,68 @@ exports['check docs version number'] = (test)->
 		test.ok true, "VERSION file matches release version"
 		test.done()
 
+exports['check cordova-js version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-js/VERSION', 'ascii') != 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['check hello world app version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-app-hello-world/VERSION', 'ascii')
!= 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['check QT version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-qt/VERSION', 'ascii') != 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['check tizen version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-tizen/VERSION', 'ascii') != 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['check mac version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-mac/VERSION', 'ascii') != 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['check mobile spec version number'] = (test)->
+	test.expect 1
+	fs = require('fs')
+	if fs.readFileSync('./temp/repositories/incubator-cordova-mobile-spec/VERSION', 'ascii')
!= VERSION
+		test.ok false, "VERSION file doesn't match release version"
+		test.done()
+	else
+		test.ok true, "VERSION file matches release version"
+		test.done()
+
 # commented out because coho does not generate binary content
-# exports['docs script successfull'] = (test)->
+# exports['docs script successful'] = (test)->
 # 	test.expect 1
 # 	fs = require('fs')
 # 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-docs/public")
@@ -250,21 +342,21 @@ exports['check docs version number'] = (test)->
 #	test.done()	
 		
 # commented out because coho does not generate binary content
-# exports['ios script successfull'] = (test)->
+# exports['ios script successful'] = (test)->
 # 	test.expect 1
 # 	fs = require('fs')
 # 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-ios/dist/Cordova-"+VERSION+".dmg")
 # 	test.done()
 		
 # commented out because coho does not generate binary content
-# exports['android script successfull'] = (test)->
+# exports['android script successful'] = (test)->
 # 	test.expect 1
 # 	fs = require('fs')
 # 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-android/example/libs/cordova-"+VERSION+".jar")
 # 	test.done()
 
 # commented out because coho does not generate binary content
-# exports['blackberry script successfull'] = (test)->
+# exports['blackberry script successful'] = (test)->
 # 	test.expect 1
 # 	fs = require('fs')
 # 	test.ok fs.existsSync("./temp/repositories/incubator-cordova-blackberry-webworks/dist/www/cordova-"+VERSION+".js")


Mime
View raw message