]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4' into PHP-8.0
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 1 Feb 2021 08:49:13 +0000 (09:49 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 1 Feb 2021 08:49:13 +0000 (09:49 +0100)
* PHP-7.4:
  Fix Laravel build on community job

1  2 
azure/community_job.yml

index 3552326bb955e30762af539b120456c887df163f,bf6f1ebd9a6b05500240d02727f3356cbb3093bb..6bfbc12af555407002b8f88e3eba14be58614991
@@@ -51,16 -50,13 +51,13 @@@ jobs
      - script: |
          git clone https://github.com/laravel/framework.git --branch=master --depth=1
          cd framework
-         #php7.3 /usr/bin/composer require "doctrine/dbal:^3.0" --no-interaction
-         php7.3 /usr/bin/composer install --no-progress
-         # Hack to disable a test that hangs on azure
-         sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php
+         php7.4 /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
 +        export ASAN_OPTIONS=exitcode=139
          php vendor/bin/phpunit
 +        if [ $? -gt 128 ]; then
 +          exit 1
 +        fi
        displayName: 'Test Laravel'
      - script: |
          git clone https://github.com/symfony/symfony.git --depth=1
          php vendor/bin/phpunit
        displayName: 'Test Amphp'
        condition: or(succeeded(), failed())
-         php7.3 /usr/bin/composer install --no-progress
 +    - script: |
 +        git clone https://github.com/sebastianbergmann/phpunit.git --branch=master --depth=1
 +        cd phpunit
 +        export USE_ZEND_ALLOC=0
 +        export USE_TRACKED_ALLOC=1
 +        export ASAN_OPTIONS=exitcode=139
++        php7.4 /usr/bin/composer install --no-progress
 +        php ./phpunit
 +        if [ $? -gt 128 ]; then
 +          exit 1
 +        fi
 +      displayName: 'Test PHPUnit'
      - script: |
-         php7.3 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
+         php7.4 /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