Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #44 from haoxli/fix-cordova
Browse files Browse the repository at this point in the history
 [cordova] Add cordova test logo
  • Loading branch information
jennycao committed Feb 2, 2015
2 parents d4dfa7c + dbfb7b2 commit 462901d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 30 deletions.
4 changes: 3 additions & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"app-version": "0.3"
"app-version": "v0.3",
"main-version": "v0.3",
"release-version": "1"
}
5 changes: 0 additions & 5 deletions css/bootstrap-theme.min.css

This file was deleted.

5 changes: 0 additions & 5 deletions css/bootstrap.min.css

This file was deleted.

4 changes: 4 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ body {
background-color: #e5e1ea;
}

.color-swatches.bs-purple-lighter1 {
background-color: #e608fc;
}

.color-swatches.bs-gray {
background-color: #f9f9f9;
}
Expand Down
20 changes: 3 additions & 17 deletions pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,6 @@ def packXPK(build_json=None, app_src=None, app_dest=None, app_name=None):


def packWGT(build_json=None, app_src=None, app_dest=None, app_name=None):
if BUILD_PARAMETERS.apppostfix:
app_name = app_name + "-" + BUILD_PARAMETERS.apppostfix
if not zipDir(app_src, os.path.join(app_dest, "%s.wgt" % app_name)):
return False

Expand Down Expand Up @@ -553,8 +551,6 @@ def packAPK(build_json=None, app_src=None, app_dest=None, app_name=None):

files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
if files:
if BUILD_PARAMETERS.apppostfix:
app_name = app_name + "-" + BUILD_PARAMETERS.apppostfix
if not doCopy(files[0], os.path.join(app_dest, "%s.apk" % app_name)):
os.chdir(orig_dir)
return False
Expand Down Expand Up @@ -602,9 +598,6 @@ def packCordova(build_json=None, app_src=None, app_dest=None, app_name=None):
return False
os.chdir(pack_tool)

if not doRemove([os.path.join(pack_tool, app_name, "assets", "www")]):
os.chdir(orig_dir)
return False
if not doCopy(app_src, os.path.join(pack_tool, app_name, "assets", "www")):
os.chdir(orig_dir)
return False
Expand All @@ -614,12 +607,9 @@ def packCordova(build_json=None, app_src=None, app_dest=None, app_name=None):
os.chdir(orig_dir)
return False

app_name_origin = app_name
if BUILD_PARAMETERS.apppostfix:
app_name = app_name + "-" + BUILD_PARAMETERS.apppostfix
if not doCopy(os.path.join(
BUILD_ROOT, "cordova", app_name_origin, "bin", "%s-debug.apk" %
app_name_origin),
BUILD_ROOT, "cordova", app_name, "bin", "%s-debug.apk" %
app_name),
os.path.join(app_dest, "%s.apk" % app_name)):
os.chdir(orig_dir)
return False
Expand Down Expand Up @@ -998,11 +988,7 @@ def main():
opts_parser.add_option(
"--pkg-version",
dest="pkgversion",
help="specify the pkg version, e.g. --pkg-version=0.0.0.1")
opts_parser.add_option(
"--app-postfix",
dest="apppostfix",
help="specify the app postfix, e.g. --app-postfix=v0.2-x86")
help="specify the pkg version, e.g. 0.0.0.1")

if len(sys.argv) == 1:
sys.argv.append("-h")
Expand Down
2 changes: 1 addition & 1 deletion tests.android.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
</testcase>
</set>
<!--
<set name="Cordova">
<set name="Cordova" background="bs-purple-lighter1" icon="glyphicon-sound-dolby">
<testcase component="sample" execution_type="manual" id="CordovaInfo" purpose="CordovaInfo">
</testcase>
<testcase component="sample" execution_type="manual" id="CordovaAccelerometer" purpose="CordovaAccelerometer">
Expand Down
2 changes: 1 addition & 1 deletion tests.full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
</testcase>
</set>
<!--
<set name="Cordova">
<set name="Cordova" background="bs-purple-lighter1" icon="glyphicon-sound-dolby">
<testcase component="sample" type="functional_positive" status="approved" execution_type="manual" platform="android" priority="P0" id="CordovaInfo" purpose="CordovaInfo">
<testcase component="sample" type="functional_positive" status="approved" execution_type="manual" platform="android" priority="P0" id="CordovaAccelerometer" purpose="CordovaAccelerometer">
<testcase component="sample" type="functional_positive" status="approved" execution_type="manual" platform="android" priority="P0" id="CordovaContacts" purpose="CordovaContacts">
Expand Down

0 comments on commit 462901d

Please sign in to comment.