Adding support for PHPSpec.
This commit is contained in:
parent
927d4f5133
commit
9ea3a22864
23
PHPCI/Plugin/PhpSpec.php
Normal file
23
PHPCI/Plugin/PhpSpec.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace PHPCI\Plugin;
|
||||
|
||||
class PhpSpec implements \PHPCI\Plugin
|
||||
{
|
||||
protected $phpci;
|
||||
|
||||
public function __construct(\PHPCI\Builder $phpci, array $options = array())
|
||||
{
|
||||
$this->phpci = $phpci;
|
||||
}
|
||||
|
||||
public function execute()
|
||||
{
|
||||
$cwd = getcwd();
|
||||
|
||||
$command = 'cd ' . $this->phpci->buildPath . ' && ';
|
||||
$command .= PHPCI_BIN_DIR . 'phpspec';
|
||||
$command .= ' && cd ' . $cwd;
|
||||
return $this->phpci->executeCommand($command);
|
||||
}
|
||||
}
|
|
@ -29,6 +29,7 @@
|
|||
"sebastian/phpcpd": "1.*",
|
||||
"squizlabs/php_codesniffer": "1.*",
|
||||
"ircmaxell/password-compat": "1.x",
|
||||
"phpspec/phpspec": "2.*",
|
||||
"ext-yaml": "*"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue