windows fixes
This commit is contained in:
parent
2ddda7711e
commit
b28a844109
|
@ -90,6 +90,7 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
|||
|
||||
$pipes = array();
|
||||
|
||||
mkdir($this->buildPath); // Prevents CreateProcess failed, error code - 267 -- see http://stackoverflow.com/a/30296289/95195
|
||||
$process = proc_open($command, $descriptorSpec, $pipes, $this->buildPath, null);
|
||||
|
||||
if (is_resource($process)) {
|
||||
|
|
|
@ -258,7 +258,7 @@ class Build extends BuildBase
|
|||
|
||||
if (empty($this->currentBuildPath)) {
|
||||
$buildDirectory = $this->getId() . '_' . substr(md5(microtime(true)), 0, 5);
|
||||
$this->currentBuildPath = PHPCI_BUILD_ROOT_DIR . $buildDirectory . DIRECTORY_SEPARATOR;
|
||||
$this->currentBuildPath = PHPCI_BUILD_ROOT_DIR . $buildDirectory;
|
||||
}
|
||||
|
||||
return $this->currentBuildPath;
|
||||
|
|
2
vars.php
2
vars.php
|
@ -18,7 +18,7 @@ if (!defined('PHPCI_BIN_DIR')) {
|
|||
|
||||
// Define PHPCI_BUILD_ROOT_DIR
|
||||
if (!defined('PHPCI_BUILD_ROOT_DIR')) {
|
||||
define('PHPCI_BUILD_ROOT_DIR', PHPCI_DIR . 'PHPCI/build/');
|
||||
define('PHPCI_BUILD_ROOT_DIR', PHPCI_DIR . 'PHPCI' . DIRECTORY_SEPARATOR . 'build' . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
// Should PHPCI run the Shell plugin?
|
||||
|
|
Loading…
Reference in a new issue