Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/ReleaseCheckListTest.php')
-rw-r--r--tests/PHPUnit/Integration/ReleaseCheckListTest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
index d880f5bfb6..04fdfc0925 100644
--- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php
+++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
@@ -60,6 +60,9 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
// filter favicon.ico as it may not be in PNG format which is fine
$files = array_filter($files, function($value) { return !preg_match('/favicon.ico/', $value); });
+ // filter source files for icon creation as they can be favicons
+ $files = array_filter($files, function($value) { return !preg_match('~icons/src~', $value); });
+
$this->checkFilesAreInPngFormat($files);
$files = Filesystem::globr(PIWIK_INCLUDE_PATH . '/core', '*.ico');
$this->checkFilesAreInPngFormat($files);
@@ -193,6 +196,7 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
PIWIK_INCLUDE_PATH . '/tests/resources/overlay-test-site-real/',
PIWIK_INCLUDE_PATH . '/tests/resources/overlay-test-site/',
PIWIK_INCLUDE_PATH . '/vendor/facebook/xhprof/xhprof_html/docs/',
+ PIWIK_INCLUDE_PATH . '/plugins/Morpheus/icons/',
);
$files = Filesystem::globr(PIWIK_INCLUDE_PATH, '*.' . $extension);
@@ -596,6 +600,11 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
return false;
}
+ if($this->isFileIsAnIconButDoesNotBelongToDistribution($file)) {
+ return false;
+ }
+
+
if($this->isPluginSubmoduleAndThereforeNotFoundInFinalRelease($file)) {
return false;
}
@@ -811,4 +820,13 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
return $composerJson;
}
+ /**
+ * ignore icon source files as they are large, but not included in the final package
+ *
+ */
+ private function isFileIsAnIconButDoesNotBelongToDistribution($file)
+ {
+ return preg_match('~Morpheus/icons/(?!dist)~', $file);
+ }
+
}