Skip to content

Commit

Permalink
Disable Laravel testing
Browse files Browse the repository at this point in the history
This has been failing for months now, let's make the scheduled
build status meaningful again.

[ci skip]
  • Loading branch information
nikic committed Oct 19, 2020
1 parent 61b33e9 commit 8bc5e23
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions azure/community_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
displayName: 'Install Build'
- script: |
git clone https://github.com/laravel/framework.git --branch=master --depth=1
cd framework
php7.3 /usr/bin/composer install --no-progress
export USE_ZEND_ALLOC=0
sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
# Avoid test using exit(), which thus leaks.
# We can use USE_TRACKED_ALLOC=1 if more of these show up.
sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
# Work around PHP 8 incompatibility in Doctrine
sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
sed -i 's/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null, ...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php
php vendor/bin/phpunit
displayName: 'Test Laravel'
#- script: |
# git clone https://github.com/laravel/framework.git --branch=master --depth=1
# cd framework
# php7.3 /usr/bin/composer install --no-progress
# export USE_ZEND_ALLOC=0
# sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
# # Avoid test using exit(), which thus leaks.
# # We can use USE_TRACKED_ALLOC=1 if more of these show up.
# sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
# # Work around PHP 8 incompatibility in Doctrine
# sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
# sed -i 's/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)/function setFetchMode($fetchMode, $arg2 = null, $arg3 = null, ...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
# sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php
# php vendor/bin/phpunit
# displayName: 'Test Laravel'
- script: |
git clone https://github.com/symfony/symfony.git --depth=1
cd symfony
Expand Down

0 comments on commit 8bc5e23

Please sign in to comment.