Added findBinary, fixes #115
This commit is contained in:
parent
f7e466bdb1
commit
0c8d9c0f74
12 changed files with 112 additions and 33 deletions
|
|
@ -66,7 +66,14 @@ class Pdepend implements \PHPCI\Plugin
|
|||
throw new \Exception(sprintf('The location %s is not writable.', $this->location));
|
||||
}
|
||||
|
||||
$cmd = PHPCI_BIN_DIR . 'pdepend --summary-xml="%s" --jdepend-chart="%s" --overview-pyramid="%s" %s "%s"';
|
||||
$pdepend = $this->phpci->findBinary('pdepend');
|
||||
|
||||
if (!$pdepend) {
|
||||
$this->phpci->logFailure('Could not find pdepend.');
|
||||
return false;
|
||||
}
|
||||
|
||||
$cmd = $pdepend . ' --summary-xml="%s" --jdepend-chart="%s" --overview-pyramid="%s" %s "%s"';
|
||||
|
||||
$this->removeBuildArtifacts();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue