Skip to content

Use composer test for php-related validations #315

@jhedstrom

Description

@jhedstrom

Over in #312 there is a partial fix for the

Warning: spawn E2BIG Use --force to continue.

error that occurs when too many files exist in the project to be passed in as arguments to phpcs. That fix works. However, there is now a related error where that occurs for the phplint portion of grunt validate:phpcs. There isn't a workaround for that that I'm aware of.

Given that, I would propose we switch to using composer test for php-related validations. This would look something like the following in the composer.json file:

    "scripts": {
        "test": [
            "composer validate --no-interaction",
            "parallel-lint src tests",
            "phpcs --encoding=utf-8 --standard=phpcs.xml --report-checkstyle=reports/checkstyle-phpcs.xml --report-full --extensions=php src/* tests/*"
        ]
    }

this test script could eventually be extended to include the other components of grunt test, such as phpunit and behat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions