Merge branch 'PHP-8.0'

* PHP-8.0:
  Use newer PHP version in community job
This commit is contained in:
Nikita Popov 2021-07-09 10:32:30 +02:00
commit 1a43094e6f

View File

@ -42,7 +42,7 @@ jobs:
git clone https://github.com/laravel/framework.git --branch=master --depth=1 git clone https://github.com/laravel/framework.git --branch=master --depth=1
cd framework cd framework
git rev-parse HEAD git rev-parse HEAD
php7.4 /usr/bin/composer install --no-progress php8.0 /usr/bin/composer install --no-progress
# Hack to disable a test that hangs on azure # Hack to disable a test that hangs on azure
sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php
export USE_ZEND_ALLOC=0 export USE_ZEND_ALLOC=0
@ -56,8 +56,8 @@ jobs:
git clone https://github.com/symfony/symfony.git --depth=1 git clone https://github.com/symfony/symfony.git --depth=1
cd symfony cd symfony
git rev-parse HEAD git rev-parse HEAD
php7.4 /usr/bin/composer install --no-progress php8.0 /usr/bin/composer install --no-progress
php7.4 ./phpunit install php8.0 ./phpunit install
export USE_ZEND_ALLOC=0 export USE_ZEND_ALLOC=0
export USE_TRACKED_ALLOC=1 export USE_TRACKED_ALLOC=1
export ASAN_OPTIONS=exitcode=139 export ASAN_OPTIONS=exitcode=139
@ -89,7 +89,7 @@ jobs:
export USE_ZEND_ALLOC=0 export USE_ZEND_ALLOC=0
export USE_TRACKED_ALLOC=1 export USE_TRACKED_ALLOC=1
export ASAN_OPTIONS=exitcode=139 export ASAN_OPTIONS=exitcode=139
php7.4 /usr/bin/composer install --no-progress php8.0 /usr/bin/composer install --no-progress
php ./phpunit php ./phpunit
if [ $? -gt 128 ]; then if [ $? -gt 128 ]; then
exit 1 exit 1
@ -97,7 +97,7 @@ jobs:
displayName: 'Test PHPUnit' displayName: 'Test PHPUnit'
condition: or(succeeded(), failed()) condition: or(succeeded(), failed())
- script: | - script: |
php7.4 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress php8.0 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
cd symfony_demo cd symfony_demo
git rev-parse HEAD git rev-parse HEAD
export USE_ZEND_ALLOC=0 export USE_ZEND_ALLOC=0