From 8c8433afe8c48aa2d8a6a4dfa4e654d0ceeef90c Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 16 Apr 2014 10:23:04 +0100 Subject: [PATCH] Updating PHPSpec plugin to work with v2. Fixes #339 --- PHPCI/Plugin/PhpSpec.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/PHPCI/Plugin/PhpSpec.php b/PHPCI/Plugin/PhpSpec.php index afd36699..02aebba7 100644 --- a/PHPCI/Plugin/PhpSpec.php +++ b/PHPCI/Plugin/PhpSpec.php @@ -21,15 +21,10 @@ use PHPCI\Model\Build; class PhpSpec implements \PHPCI\Plugin { protected $phpci; - protected $bootstrap; public function __construct(Builder $phpci, Build $build, array $options = array()) { $this->phpci = $phpci; - - if (!empty($options['bootstrap'])) { - $this->bootstrap = $this->buildPath . $options['bootstrap']; - } } /** @@ -47,11 +42,7 @@ class PhpSpec implements \PHPCI\Plugin return false; } - if ($this->bootstrap) { - $success = $this->phpci->executeCommand($phpspec . ' -f d'); - } else { - $success = $this->phpci->executeCommand($phpspec . ' -f d --bootstrap "%s"', $this->bootstrap); - } + $success = $this->phpci->executeCommand($phpspec . ' --format=pretty --no-code-generation'); chdir($curdir);