Skip to content

Commit

Permalink
Updated composer config
Browse files Browse the repository at this point in the history
  • Loading branch information
yadenis committed Jan 3, 2021
1 parent 4c0d1c1 commit 20c3d08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,5 @@ script:
- |
# If we've set the $WP_TRAVISCI variable to run PHPCS, do that instead
if [[ "$WP_TRAVISCI" == "phpcs" ]]; then
composer global require wp-coding-standards/wpcs
composer global require phpcompatibility/php-compatibility
./vendor/bin/phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/phpcompatibility/php-compatibility
./vendor/bin/phpcs
fi
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"require-dev": {
"squizlabs/php_codesniffer": "*",
"require-dev": {
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/php-compatibility": "*"
}
},
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility",
"post-update-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility"
}
}

0 comments on commit 20c3d08

Please sign in to comment.