fix symlink check and build dir

This commit is contained in:
Gabriel Baker 2013-05-15 21:53:36 +01:00
parent 48ed635f63
commit a4a443f255
2 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