Release: dist can be run during a test

This commit is contained in:
Timmy Willison 2015-01-29 15:36:48 -08:00
parent 61224f5fef
commit aae998b544
2 changed files with 2 additions and 8 deletions

View File

@ -45,12 +45,6 @@ module.exports = function( Release ) {
* @param {Function} callback
*/
dist: function( callback ) {
if ( Release.isTest ) {
callback();
return;
}
dist( Release, callback );
}
});

View File

@ -101,7 +101,7 @@ module.exports = function( Release, complete ) {
Release.dir.repo = Release.dir.dist;
}
Release.walk([
Release.walk( [
Release._section( "Copy files to distribution repo" ),
clone,
copy,
@ -109,5 +109,5 @@ module.exports = function( Release, complete ) {
Release._section( "Pushing files to distribution repo" ),
push
], complete);
], complete );
};