fix symlink check and build dir
This commit is contained in:
parent
48ed635f63
commit
a4a443f255
|
@ -153,7 +153,7 @@ class Builder
|
||||||
switch ($type)
|
switch ($type)
|
||||||
{
|
{
|
||||||
case 'local':
|
case 'local':
|
||||||
$this->buildPath = $this->ciDir . 'build/' . $buildId;
|
$this->buildPath = substr($this->buildPath, 0, -1);
|
||||||
|
|
||||||
if(!is_file($reference . '/phpci.yml'))
|
if(!is_file($reference . '/phpci.yml'))
|
||||||
{
|
{
|
||||||
|
@ -175,7 +175,11 @@ class Builder
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->log(sprintf('Symlinking: %s to %s',$reference, $this->buildPath));
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
|
0
PHPCI/build/.gitkeep
Normal file
0
PHPCI/build/.gitkeep
Normal file
Loading…
Reference in a new issue