windows fixes

This commit is contained in:
Justin Dearing 2016-03-18 00:20:35 -04:00
parent 2ddda7711e
commit b28a844109
3 changed files with 3 additions and 2 deletions

View file

@ -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)) {

View file

@ -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;

View file

@ -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?