Skip to content

Instantly share code, notes, and snippets.

@cb1kenobi
Created September 1, 2017 16:37
Show Gist options
  • Save cb1kenobi/82b09c9cb5d9af82e3fedabb0bd5d9ca to your computer and use it in GitHub Desktop.
Save cb1kenobi/82b09c9cb5d9af82e3fedabb0bd5d9ca to your computer and use it in GitHub Desktop.
Forces Titanium distribution builds to be deploy type test
/**
* Forces Titanium distribution builds to be deploy type test.
*
* To install, place this file in a `hooks` directory in your Titanium project directory.
*/
'use strict';
exports.id = 'com.axway.dist-test';
exports.init = function init(logger, config, cli, appc) {
cli.on('build.pre.construct', function (builder) {
builder.deployType = 'test';
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment