Fixed 'setup', 'test' and 'deploy' stages. Now if 'setup' or 'test' is failed then next stages will skip.

This commit is contained in:
Dmitry Khomutov 2017-07-16 23:40:55 +07:00
parent d33cd71e8d
commit fdde33e2e2
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -205,6 +205,9 @@ class Builder implements LoggerAwareInterface
// Run the core plugin stages:
foreach ([Build::STAGE_SETUP, Build::STAGE_TEST, Build::STAGE_DEPLOY] as $stage) {
$success &= $this->pluginExecutor->executePlugins($this->config, $stage);
if (!$success) {
break;
}
}
// Set the status so this can be used by complete, success and failure
@ -215,7 +218,6 @@ class Builder implements LoggerAwareInterface
$this->build->setStatus(Build::STATUS_FAILED);
}
if ($success) {
$this->pluginExecutor->executePlugins($this->config, Build::STAGE_SUCCESS);