Commit a531dfd3 authored by catch's avatar catch
Browse files

Issue #3312089 by longwave: Run phpcs in parallel in commit-code-check.sh

parent b8a64b70
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -113,8 +113,8 @@
            "Drupal\\Composer\\Composer::generateMetapackages",
            "Drupal\\Composer\\Composer::generateComponentPackages"
        ],
        "phpcs": "phpcs --standard=core/phpcs.xml.dist --",
        "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --"
        "phpcs": "phpcs --standard=core/phpcs.xml.dist --parallel=$(nproc) --",
        "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --parallel=$(nproc) --"
    },
    "repositories": [
        {
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@
# When the file core/phpcs.xml.dist has been changed, then PHPCS must check all files.
if [[ $PHPCS_XML_DIST_FILE_CHANGED == "1" ]]; then
  # Test all files with phpcs rules.
  vendor/bin/phpcs -ps --standard="$TOP_LEVEL/core/phpcs.xml.dist"
  vendor/bin/phpcs -ps --parallel=$(nproc) --standard="$TOP_LEVEL/core/phpcs.xml.dist"
  PHPCS=$?
  if [ "$PHPCS" -ne "0" ]; then
    # If there are failures set the status to a number other than 0.