diff --git a/PHPCI/Plugin/PhpSpec.php b/PHPCI/Plugin/PhpSpec.php new file mode 100644 index 00000000..75030161 --- /dev/null +++ b/PHPCI/Plugin/PhpSpec.php @@ -0,0 +1,23 @@ +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); + } +} \ No newline at end of file diff --git a/composer.json b/composer.json index 92a0292d..22367854 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "sebastian/phpcpd": "1.*", "squizlabs/php_codesniffer": "1.*", "ircmaxell/password-compat": "1.x", + "phpspec/phpspec": "2.*", "ext-yaml": "*" } } \ No newline at end of file