Merge pull request #249 from c2is/master

Added executable option for behat plugin
This commit is contained in:
Steve B 2014-01-16 00:52:58 -08:00
commit ddf7f8a4c3

View file

@ -28,6 +28,12 @@ class Behat implements \PHPCI\Plugin
$this->phpci = $phpci;
$this->features = '';
if (isset($options['executable'])) {
$this->executable = $options['executable'];
} else {
$this->executable = $this->phpci->findBinary('atoum');
}
if (!empty($options['features'])) {
$this->features = $options['features'];
}
@ -41,7 +47,7 @@ class Behat implements \PHPCI\Plugin
$curdir = getcwd();
chdir($this->phpci->buildPath);
$behat = $this->phpci->findBinary('behat');
$behat = $this->executable;
if (!$behat) {
$this->phpci->logFailure('Could not find behat.');