summaryrefslogtreecommitdiff
path: root/azure
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-09-04 15:31:32 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-09-07 10:15:05 +0200
commite0c94677b775b3e32ff3d2be0264fee26cb6a667 (patch)
tree49b9bcc3e6cc6bbf9ebff54ea02c915467557dd3 /azure
parent623bf96e7e37a05622df163a228c8e1c3f7d0b02 (diff)
downloadphp-git-e0c94677b775b3e32ff3d2be0264fee26cb6a667.tar.gz
Add phpunit to community project tests
Diffstat (limited to 'azure')
-rw-r--r--azure/community_job.yml12
1 files changed, 12 insertions, 0 deletions
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())