61a096d871
PR https://github.com/woocommerce/woocommerce/pull/23082 made some changes to the Travis configuration and one of those changes broke the PHPCS when running inside Travis with the following error: ``` ERROR: Referenced sniff "WooCommerce-Core" does not exist ``` For example: https://travis-ci.org/woocommerce/woocommerce/jobs/509471213#L659 This problem went unnoticed during the PR review as no PHP file was modified in it and thus there was no file for PHPCS to check. This commit fixes the error above by installing the Composer package `woocommerce/woocommerce-sniffs` which is the package that provides `WooCommerce-Core` sniffs and which installs `wp-coding-standards/wpcs` as one of its requirements. I couldn't find an easy way to make this work installing `woocommerce/woocommerce-sniffs` globally so that is why this commit also removes the `global` parameter when calling composer. |
||
---|---|---|
.. | ||
install.sh | ||
phpcs.sh | ||
phpunit.sh | ||
run-e2e-CI.sh | ||
travis.sh |