Merge pull request #1066 from REBELinBLUE/hide_yml_file
Adding support to check for .phpci.yml so the file can be 'hidden'
This commit is contained in:
commit
5062a58ba1
|
@ -99,8 +99,13 @@ class Build extends BuildBase
|
|||
{
|
||||
$build_config = null;
|
||||
|
||||
// Try .phpci.yml
|
||||
if (is_file($buildPath . '/.phpci.yml')) {
|
||||
$build_config = file_get_contents($buildPath . '/.phpci.yml');
|
||||
}
|
||||
|
||||
// Try phpci.yml first:
|
||||
if (is_file($buildPath . '/phpci.yml')) {
|
||||
if (empty($build_config) && is_file($buildPath . '/phpci.yml')) {
|
||||
$build_config = file_get_contents($buildPath . '/phpci.yml');
|
||||
}
|
||||
|
||||
|
|
|
@ -151,6 +151,7 @@ class TechnicalDebt implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin
|
|||
|
||||
$ignores = $this->ignore;
|
||||
$ignores[] = 'phpci.yml';
|
||||
$ignores[] = '.phpci.yml';
|
||||
|
||||
foreach ($iterator as $file) {
|
||||
$filePath = $file->getRealPath();
|
||||
|
|
Loading…
Reference in a new issue