%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/codeception/base/ |
Upload File : |
<?php /** * This file allows for tests to be skipped. * For now conditions are simple. * We check if changes in the source with respect to the configured branch are limited to framework files, * if that is the case and the current framework isn't one with changed files then we skip it. */ $branch ="2.4"; function stderr($message) { fwrite(STDERR, $message . "\n"); } $currentFramework = getenv('FRAMEWORK'); if ($currentFramework === 'Codeception') { stderr('Codeception tests are always executed'); die(); } $files = []; exec("git diff --name-only $branch", $files); // Regexes for frameworks: $regexes = [ 'Yii2' => '/.*Yii2.*/', 'Lumen' => '/.*(Lumen|LaravelCommon).*/', 'Laravel' => '/.*Laravel.*/', 'Phalcon' => '/.*Phalcon.*/', 'Symfony' => '/.*Symfony.*/', 'Yii1' => '/.*Yii1.*/', 'ZendExpressive' => '/.*ZendExpressive.*/', 'Zend1' => '/.*ZF1.*/', 'Zend2' => '/.*ZF2.*/', ]; // First check if changes include files that are not framework files. $frameworkOnly = true; $frameworks = []; foreach ($files as $file) { $match = false; foreach ($regexes as $framework => $regex) { if (preg_match($regex, $file)) { $match = true; $frameworks[$framework] = $framework; break; } } if (!$match) { $frameworkOnly = false; break; } } if ($frameworkOnly) { stderr('Changes limited to frameworks: ' . implode(', ', $frameworks)); if (!isset($frameworks[$currentFramework])) { stderr("Skipping test for framework: $currentFramework"); echo "export FRAMEWORK=\n"; echo "export PECL=\n"; echo "export FXP=\n"; echo "export CI_USER_TOKEN=\n"; } }