From e0c94677b775b3e32ff3d2be0264fee26cb6a667 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 4 Sep 2020 15:31:32 +0200 Subject: [PATCH] Add phpunit to community project tests --- azure/community_job.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure/community_job.yml b/azure/community_job.yml index e7b99cd374..ae1a44ed94 100644 --- a/azure/community_job.yml +++ b/azure/community_job.yml @@ -92,4 +92,16 @@ jobs: sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php php vendor/bin/phpunit displayName: 'Test Amphp' + - 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.3 /usr/bin/composer install --no-progress + php ./phpunit + if [ $? -gt 128 ]; then + exit 1 + fi + displayName: 'Test PHPUnit' condition: or(succeeded(), failed()) -- 2.50.1