From 9ea3a228647763b52e49265def0c20fcd2f25405 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 14 May 2013 14:37:14 +0100 Subject: [PATCH] Adding support for PHPSpec. --- PHPCI/Plugin/PhpSpec.php | 23 +++++++++++++++++++++++ composer.json | 1 + 2 files changed, 24 insertions(+) create mode 100644 PHPCI/Plugin/PhpSpec.php 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