Adding support for PHPSpec.

This commit is contained in:
Dan Cryer 2013-05-14 14:37:14 +01:00
parent 927d4f5133
commit 9ea3a22864
2 changed files with 24 additions and 0 deletions

23
PHPCI/Plugin/PhpSpec.php Normal file
View 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);
}
}

View file

@ -29,6 +29,7 @@
"sebastian/phpcpd": "1.*",
"squizlabs/php_codesniffer": "1.*",
"ircmaxell/password-compat": "1.x",
"phpspec/phpspec": "2.*",
"ext-yaml": "*"
}
}