31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-26 08:22:34 +00:00

Merge branch 'master' of github.com:joomla-extensions/patchtester

This commit is contained in:
Michael Babker 2016-03-27 14:14:00 -04:00
commit 4811968a5c

View File

@ -25,7 +25,25 @@ class PullModel extends \JModelDatabase
* @var array
* @since 2.0
*/
protected $nonProductionFolders = array('build', 'docs', 'installation', 'tests');
protected $nonProductionFolders = array('build', 'docs', 'installation', 'tests', '.github');
/**
* Array containing non-production files
*
* @var array
* @since 2.0
*/
protected $nonProductionFiles = array(
'.gitignore',
'.travis.yml',
'README.md',
'build.xml',
'composer.json',
'composer.lock',
'phpunit.xml.dist',
'robots.txt.dist',
'travisci-phpunit.xml',
);
/**
* Method to parse a patch and extract the affected files
@ -102,6 +120,11 @@ class PullModel extends \JModelDatabase
{
$filePath = explode('/', $file->new);
if (in_array($filePath[0], $this->nonProductionFiles))
{
continue;
}
if (in_array($filePath[0], $this->nonProductionFolders))
{
continue;