From: Nikita Popov Date: Mon, 19 Oct 2020 08:43:43 +0000 (+0200) Subject: Disable Laravel testing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bc5e23f40e3beaea3055873a00ad3c4ff007a40;p=php Disable Laravel testing This has been failing for months now, let's make the scheduled build status meaningful again. [ci skip] --- diff --git a/azure/community_job.yml b/azure/community_job.yml index 70a5d6b9d2..f69abe24bb 100644 --- a/azure/community_job.yml +++ b/azure/community_job.yml @@ -48,21 +48,21 @@ jobs: echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini displayName: 'Install Build' - - script: | - git clone https://github.com/laravel/framework.git --branch=master --depth=1 - cd framework - php7.3 /usr/bin/composer install --no-progress - export USE_ZEND_ALLOC=0 - sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php - # Avoid test using exit(), which thus leaks. - # We can use USE_TRACKED_ALLOC=1 if more of these show up. - sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php - # Work around PHP 8 incompatibility in Doctrine - sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php - sed -i 's/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null, ...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php - sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php - php vendor/bin/phpunit - displayName: 'Test Laravel' + #- script: | + # git clone https://github.com/laravel/framework.git --branch=master --depth=1 + # cd framework + # php7.3 /usr/bin/composer install --no-progress + # export USE_ZEND_ALLOC=0 + # sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php + # # Avoid test using exit(), which thus leaks. + # # We can use USE_TRACKED_ALLOC=1 if more of these show up. + # sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php + # # Work around PHP 8 incompatibility in Doctrine + # sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php + # sed -i 's/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null, ...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php + # sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php + # php vendor/bin/phpunit + # displayName: 'Test Laravel' - script: | git clone https://github.com/symfony/symfony.git --depth=1 cd symfony