Re-enable laravel tests

Laravel is now sufficiently PHP 8 compatible.

Closes GH-6353.
This commit is contained in:
Nikita Popov 2020-10-19 16:45:44 +02:00
parent 0fa154ad8d
commit 8aead9e2bc

View file

@ -48,28 +48,25 @@ jobs:
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
displayName: 'Install Build' displayName: 'Install Build'
#- script: | - script: |
# git clone https://github.com/laravel/framework.git --branch=master --depth=1 git clone https://github.com/laravel/framework.git --branch=master --depth=1
# cd framework cd framework
# php7.3 /usr/bin/composer install --no-progress #php7.3 /usr/bin/composer require "doctrine/dbal:^3.0" --no-interaction
# export USE_ZEND_ALLOC=0 php7.3 /usr/bin/composer install --no-progress
# sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php # Hack to disable a test that hangs on azure
# # Avoid test using exit(), which thus leaks. sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php
# # We can use USE_TRACKED_ALLOC=1 if more of these show up. export USE_ZEND_ALLOC=0
# sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php export ASAN_OPTIONS=exitcode=139
# # Work around PHP 8 incompatibility in Doctrine php vendor/bin/phpunit
# sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php if [ $? -gt 128 ]; then
# 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 exit 1
# sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php fi
# php vendor/bin/phpunit displayName: 'Test Laravel'
# displayName: 'Test Laravel'
- script: | - script: |
git clone https://github.com/symfony/symfony.git --depth=1 git clone https://github.com/symfony/symfony.git --depth=1
cd symfony cd symfony
php7.3 /usr/bin/composer install --no-progress php7.3 /usr/bin/composer install --no-progress
php7.3 ./phpunit install 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_ZEND_ALLOC=0
export USE_TRACKED_ALLOC=1 export USE_TRACKED_ALLOC=1
export ASAN_OPTIONS=exitcode=139 export ASAN_OPTIONS=exitcode=139