WordPress.org

Make WordPress Core

Ticket #51456: 51456.2.diff

File 51456.2.diff, 2.3 KB (added by desrosj, 5 months ago)

Also update .travis.yml file to use the new NPM script.

  • .travis.yml

     
    4242    script:
    4343      # The PHPUnit 7.x phar is not compatible with PHP 8 and won't be updated,
    4444      # as PHPUnit 7 is no longer supported, so run the Composer-installed PHPUnit instead.
    45       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist
    46       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group ajax
    47       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml
    48       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files
    49       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http
    50       - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group restapi-jsclient
     45      - npm run test:php-composer --verbose -c phpunit.xml.dist
     46      - npm run test:php-composer --verbose -c phpunit.xml.dist --group ajax
     47      - npm run test:php-composer --verbose -c tests/phpunit/multisite.xml
     48      - npm run test:php-composer --verbose -c tests/phpunit/multisite.xml --group ms-files
     49      - npm run test:php-composer --verbose -c phpunit.xml.dist --group external-http
     50      - npm run test:php-composer --verbose -c phpunit.xml.dist --group restapi-jsclient
    5151      # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
    5252      # Xdebug supports PHP 8 only from version 3.0, which is not released yet.
    5353      # Once Xdebug 3.0 is released and included in the Docker image, this should be uncommented again.
  • package.json

     
    167167                "env:logs": "node ./tools/local-env/scripts/docker.js logs",
    168168                "env:pull": "node ./tools/local-env/scripts/docker.js pull",
    169169                "test:php": "node ./tools/local-env/scripts/docker.js run --rm phpunit phpunit",
     170                "test:php-composer": "node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit",
    170171                "test:e2e": "node ./tests/e2e/run-tests.js"
    171172        }
    172173}