Skip to content

Commit 5de68cb

Browse files
committed
Re-enable laravel tests
1 parent d3812ca commit 5de68cb

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

azure/community_job.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,18 @@ jobs:
4848
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
4949
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
5050
displayName: 'Install Build'
51-
#- script: |
52-
# git clone https://github.com/laravel/framework.git --branch=master --depth=1
53-
# cd framework
54-
# php7.3 /usr/bin/composer install --no-progress
55-
# export USE_ZEND_ALLOC=0
56-
# sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
57-
# # Avoid test using exit(), which thus leaks.
58-
# # We can use USE_TRACKED_ALLOC=1 if more of these show up.
59-
# sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
60-
# # Work around PHP 8 incompatibility in Doctrine
61-
# sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
62-
# 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
63-
# sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php
64-
# php vendor/bin/phpunit
65-
# displayName: 'Test Laravel'
51+
- script: |
52+
git clone https://github.com/laravel/framework.git --branch=master --depth=1
53+
cd framework
54+
php7.3 /usr/bin/composer require "doctrine/dbal:^3.0" --no-interaction
55+
php7.3 /usr/bin/composer install --no-progress
56+
export USE_ZEND_ALLOC=0
57+
export ASAN_OPTIONS=exitcode=139
58+
php vendor/bin/phpunit
59+
if [ $? -gt 128 ]; then
60+
exit 1
61+
fi
62+
displayName: 'Test Laravel'
6663
- script: |
6764
git clone https://github.com/symfony/symfony.git --depth=1
6865
cd symfony

0 commit comments

Comments
 (0)