This commit is contained in:
Steve Kamerman 2013-05-15 17:24:17 -04:00
commit 55a823fd9a
4 changed files with 19 additions and 11 deletions

View file

@ -153,7 +153,7 @@ class Builder
switch ($type)
{
case 'local':
$this->buildPath = $this->ciDir . 'build/' . $buildId;
$this->buildPath = substr($this->buildPath, 0, -1);
if(!is_file($reference . '/phpci.yml'))
{
@ -175,7 +175,11 @@ class Builder
}
$this->log(sprintf('Symlinking: %s to %s',$reference, $this->buildPath));
symlink($reference, $this->buildPath);
if ( !symlink($reference, $this->buildPath) )
{
$this->logFailure('Failed to symlink.');
return false;
}
}
else
{

0
PHPCI/build/.gitkeep Normal file
View file

View file

@ -23,7 +23,11 @@ spl_autoload_register(function ($class)
define('APPLICATION_PATH', dirname(__FILE__) . '/');
require_once('vendor/autoload.php');
if(file_exists(APPLICATION_PATH . 'config.php'))
{
require('config.php');
}
b8\Registry::getInstance()->set('app_namespace', 'PHPCI');
b8\Registry::getInstance()->set('DefaultController', 'Index');

0
build/.gitkeep Normal file
View file