I've replaced the requirement for the pecl yaml extension with the symphony component. Sometimes I work on a windows box and the instructions for installing pecl yaml on windows looked a little intimidating:
https://code.google.com/p/php-yaml/wiki/InstallingWithPecl
This commit is contained in:
parent
0a9c7bda93
commit
bdaf5abff7
|
@ -3,6 +3,7 @@
|
|||
namespace PHPCI;
|
||||
use PHPCI\Model\Build;
|
||||
use b8\Store;
|
||||
use Symfony\Component\Yaml\Parser as YamlParser;
|
||||
|
||||
class Builder
|
||||
{
|
||||
|
@ -153,7 +154,9 @@ class Builder
|
|||
return false;
|
||||
}
|
||||
|
||||
$this->config = yaml_parse_file($this->buildPath . 'phpci.yml');
|
||||
$yamlParser = new YamlParser();
|
||||
$yamlFile = file_get_contents($this->buildPath . 'phpci.yml');
|
||||
$this->config = $yamlParser->parse($yamlFile);
|
||||
|
||||
if(!isset($this->config['verbose']) || !$this->config['verbose'])
|
||||
{
|
||||
|
|
|
@ -30,6 +30,6 @@
|
|||
"squizlabs/php_codesniffer": "1.*",
|
||||
"ircmaxell/password-compat": "1.x",
|
||||
"phpspec/phpspec": "2.*",
|
||||
"ext-yaml": "*"
|
||||
"symfony/yaml": "2.2.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue