- 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
+ php7.4 /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
+ 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
php vendor/bin/phpunit
displayName: 'Test Amphp'
condition: or(succeeded(), failed())
- php7.3 /usr/bin/composer install --no-progress
+ - script: |
+ git clone https://github.com/sebastianbergmann/phpunit.git --branch=master --depth=1
+ cd phpunit
+ export USE_ZEND_ALLOC=0
+ export USE_TRACKED_ALLOC=1
+ export ASAN_OPTIONS=exitcode=139
++ php7.4 /usr/bin/composer install --no-progress
+ php ./phpunit
+ if [ $? -gt 128 ]; then
+ exit 1
+ fi
+ displayName: 'Test PHPUnit'
- script: |
- php7.3 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
+ php7.4 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
cd symfony_demo
export USE_ZEND_ALLOC=0
export USE_TRACKED_ALLOC=1