Skip to content

Commit

Permalink
Release: dist can be run during a test
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Jan 29, 2015
1 parent 61224f5 commit aae998b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions build/release.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ module.exports = function( Release ) {
* @param {Function} callback * @param {Function} callback
*/ */
dist: function( callback ) { dist: function( callback ) {

if ( Release.isTest ) {
callback();
return;
}

dist( Release, callback ); dist( Release, callback );
} }
}); });
Expand Down
4 changes: 2 additions & 2 deletions build/release/dist.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ module.exports = function( Release, complete ) {
Release.dir.repo = Release.dir.dist; Release.dir.repo = Release.dir.dist;
} }


Release.walk([ Release.walk( [
Release._section( "Copy files to distribution repo" ), Release._section( "Copy files to distribution repo" ),
clone, clone,
copy, copy,
Release.confirmReview, Release.confirmReview,


Release._section( "Pushing files to distribution repo" ), Release._section( "Pushing files to distribution repo" ),
push push
], complete); ], complete );
}; };

0 comments on commit aae998b

Please sign in to comment.