Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add PHPCS to travis CI tests (#236)
Browse files Browse the repository at this point in the history
* Limit phpcs to only linting php files

* Add composer & phpcs to travis process
  • Loading branch information
ryelle committed Dec 14, 2018
1 parent b6aa1ae commit d4e47c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -21,6 +21,8 @@ jobs:
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
php: 7.1
script:
- composer install
- composer run-script phpcs .
- npm install
- npm run lint
- npm run build
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"phpcs": [
"phpcs -s -p"
"phpcs --extensions=php -s -p"
],
"phpcbf": [
"phpcbf -p"
Expand Down

0 comments on commit d4e47c8

Please sign in to comment.