diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-19 16:45:44 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-26 14:31:48 +0100 |
commit | 8aead9e2bc3021bf83a440a6e56a905833b8e8e7 (patch) | |
tree | 30418197129e1692c63fd8f9196c23c06b9aa8a1 | |
parent | 0fa154ad8da89f25dae6141dd5398aa9c1821699 (diff) | |
download | php-git-8aead9e2bc3021bf83a440a6e56a905833b8e8e7.tar.gz |
Re-enable laravel tests
Laravel is now sufficiently PHP 8 compatible.
Closes GH-6353.
-rw-r--r-- | azure/community_job.yml | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/azure/community_job.yml b/azure/community_job.yml index f69abe24bb..164a865528 100644 --- a/azure/community_job.yml +++ b/azure/community_job.yml @@ -48,28 +48,25 @@ 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 require "doctrine/dbal:^3.0" --no-interaction + php7.3 /usr/bin/composer install --no-progress + # Hack to disable a test that hangs on azure + sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php + export USE_ZEND_ALLOC=0 + export ASAN_OPTIONS=exitcode=139 + php vendor/bin/phpunit + if [ $? -gt 128 ]; then + exit 1 + fi + displayName: 'Test Laravel' - script: | git clone https://github.com/symfony/symfony.git --depth=1 cd symfony php7.3 /usr/bin/composer install --no-progress php7.3 ./phpunit install - # Work around PHP 8 incompatibility in Doctrine - sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php export USE_ZEND_ALLOC=0 export USE_TRACKED_ALLOC=1 export ASAN_OPTIONS=exitcode=139 |