fix(pipeline): build contracts even when pipeline is disabled

This commit is contained in:
Jonathan Rainville 2019-04-02 09:11:33 -04:00 committed by Iuri Matias
parent 6b2dc95fad
commit 75af5c4ed9
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ class Pipeline {
});
this.events.setCommandHandler('pipeline:build', (options, callback) => {
if(!this.pipelineConfig.enabled) return callback();
if(!this.pipelineConfig.enabled) {
return this.buildContracts([], callback);
}
this.build(options, callback);
});
this.events.setCommandHandler('pipeline:build:contracts', callback => this.buildContracts([], callback));