Install globally
This commit is contained in:
parent
aa57d2f676
commit
f748a71a8e
|
@ -7,7 +7,7 @@ if [[ ${RUN_PHPCS} == 1 ]]; then
|
||||||
if [ "$CHANGED_FILES" != "" ]; then
|
if [ "$CHANGED_FILES" != "" ]; then
|
||||||
if [ ! -f "./vendor/bin/phpcs" ]; then
|
if [ ! -f "./vendor/bin/phpcs" ]; then
|
||||||
# Install wpcs globally
|
# Install wpcs globally
|
||||||
composer require woocommerce/woocommerce-sniffs
|
composer global require woocommerce/woocommerce-sniffs --update-with-all-dependencies
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running Code Sniffer."
|
echo "Running Code Sniffer."
|
||||||
|
|
Loading…
Reference in New Issue