23 lines
404 B
PHP
23 lines
404 B
PHP
<?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()
|
|
{
|
|
$curdir = getcwd();
|
|
chdir($this->phpci->buildPath);
|
|
$success = $this->phpci->executeCommand(PHPCI_BIN_DIR . 'phpspec');
|
|
chdir($curdir);
|
|
|
|
return $success;
|
|
}
|
|
} |