Merge pull request #26 from gabriel403/hotfix/symlinkcheck

Hotfix/symlinkcheck
This commit is contained in:
Dan Cryer 2013-05-15 14:10:57 -07:00
commit ee4a8fd781
3 changed files with 14 additions and 10 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

0
build/.gitkeep Normal file
View file