Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Add wordpress to community build
This commit is contained in:
Ilija Tovilo 2022-11-17 11:34:08 +01:00
commit c53b065c48
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -366,6 +366,22 @@ jobs:
git rev-parse HEAD git rev-parse HEAD
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php 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 php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
- name: Test Wordpress
if: always()
run: |
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
cd wordpress
git rev-parse HEAD
export ASAN_OPTIONS=exitcode=139
php /usr/bin/composer install --no-progress --ignore-platform-reqs
cp wp-tests-config-sample.php wp-tests-config.php
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
sed -i 's/yourusernamehere/root/g' wp-tests-config.php
sed -i 's/yourpasswordhere/root/g' wp-tests-config.php
php vendor/bin/phpunit || EXIT_CODE=$?
if [ $EXIT_CODE -gt 128 ]; then
exit 1
fi
OPCACHE_VARIATION: OPCACHE_VARIATION:
needs: GENERATE_MATRIX needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}