Merge pull request #26 from gabriel403/hotfix/symlinkcheck
Hotfix/symlinkcheck
This commit is contained in:
commit
ee4a8fd781
|
@ -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
0
PHPCI/build/.gitkeep
Normal file
0
build/.gitkeep
Normal file
0
build/.gitkeep
Normal file
Loading…
Reference in a new issue