Fixes
This commit is contained in:
parent
37bdffbbdd
commit
2476086f7c
|
@ -118,7 +118,7 @@ class Builder implements LoggerAwareInterface
|
||||||
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
|
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
|
||||||
|
|
||||||
$executorClass = 'PHPCI\Helper\UnixCommandExecutor';
|
$executorClass = 'PHPCI\Helper\UnixCommandExecutor';
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
|
if (IS_WIN) {
|
||||||
$executorClass = 'PHPCI\Helper\WindowsCommandExecutor';
|
$executorClass = 'PHPCI\Helper\WindowsCommandExecutor';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
4
vars.php
4
vars.php
|
@ -25,3 +25,7 @@ if (!defined('ENABLE_SHELL_PLUGIN')) {
|
||||||
if (!defined('PHPCI_IS_CONSOLE')) {
|
if (!defined('PHPCI_IS_CONSOLE')) {
|
||||||
define('PHPCI_IS_CONSOLE', false);
|
define('PHPCI_IS_CONSOLE', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('IS_WIN')) {
|
||||||
|
define('IS_WIN', ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false));
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue