Skip to content

Commit e0c9467

Browse files
committed
Add phpunit to community project tests
1 parent 623bf96 commit e0c9467

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

azure/community_job.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,16 @@ jobs:
9292
sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
9393
php vendor/bin/phpunit
9494
displayName: 'Test Amphp'
95+
- script: |
96+
git clone https://github.com/sebastianbergmann/phpunit.git --branch=master --depth=1
97+
cd phpunit
98+
export USE_ZEND_ALLOC=0
99+
export USE_TRACKED_ALLOC=1
100+
export ASAN_OPTIONS=exitcode=139
101+
php7.3 /usr/bin/composer install --no-progress
102+
php ./phpunit
103+
if [ $? -gt 128 ]; then
104+
exit 1
105+
fi
106+
displayName: 'Test PHPUnit'
95107
condition: or(succeeded(), failed())

0 commit comments

Comments
 (0)