Skip to content

Commit

Permalink
Add integration test for symfony preloading
Browse files Browse the repository at this point in the history
To help catch regressions like the one that occurred in PHP 7.4.12.

Closes phpGH-6414.
  • Loading branch information
nikic committed Nov 10, 2020
1 parent bd2b4a5 commit f419e04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azure/community_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ jobs:
php vendor/bin/phpunit
displayName: 'Test Amphp'
condition: or(succeeded(), failed())
- script: |
php7.3 /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
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
displayName: 'Symfony Preloading'
condition: or(succeeded(), failed())

0 comments on commit f419e04

Please sign in to comment.