Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Changes the jake deploy-test to always call jake with jake build[test].
Browse files Browse the repository at this point in the history
The preprocessor define test can then be used in code like this-
//@if test
    _webviewObj.zOrder = -1;
//@else
    _webviewObj.zOrder = 0;
//@endif

This means that the zOrder will be 0 in the case of test builds but CI &
SCM builds will have zOrder as 0

Reviewed By: James Keshavarzi <jkeshavarzi@rim.com>
Tested By: Tracy Li <tli@rim.com>
  • Loading branch information
nukulb committed Oct 12, 2012
1 parent df85377 commit c3d823f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/deploy-tests.js
Expand Up @@ -85,7 +85,7 @@ module.exports = function (pathToPackager, packagerOptions, target, deviceIp, pa
util.puts("Device password not specified, using default from build/conf.js - " + password);
}

deployTests = jWorkflow.order(_exec("jake build", {cwd: jakeDir}))
deployTests = jWorkflow.order(_exec("jake build[test]", {cwd: jakeDir}))
.andThen(_exec("jake test-app", {cwd: jakeDir}))
.andThen(_exec("jake package['" + pathToPackager + "','test/test-app/wwTest.zip','" + packagerOptions + "','js/webworks.js']", {cwd: jakeDir}))
.andThen(_exec("jake deploy[" + barPath + "," + deviceIp + "," + password + "]", {cwd: jakeDir}));
Expand Down

0 comments on commit c3d823f

Please sign in to comment.