Skip to content

Commit

Permalink
[4.0] Improving phpcs setup (#25600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored and wilsonge committed Jul 24, 2019
1 parent 54b0098 commit 1e1514b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ steps:
depends_on: [ composer ]
commands:
- echo $(date)
- ./libraries/vendor/bin/phpcs --config-set installed_paths ../../joomla/cms-coding-standards/lib,../../joomla/coding-standards
- ./libraries/vendor/bin/phpcs --report=full --encoding=utf-8 --extensions=php --ignore=libraries/vendor/*,tests/*,build/*,node_modules/*,media/*,libraries/autoload_psr4.php,installation/template/error.php -p --standard=libraries/vendor/joomla/cms-coding-standards/lib/Joomla-CMS .
- ./libraries/vendor/bin/phpcs --extensions=php -p --standard=libraries/vendor/joomla/cms-coding-standards/lib/Joomla-CMS .
- echo $(date)

- name: npm
Expand Down Expand Up @@ -255,6 +254,6 @@ services:

---
kind: signature
hmac: ec40511e747c1a260fa14fb56e32d93eeea1ed9ac2b90f6372e543792c41a401
hmac: f630fe4a12bba0357fd8f54b6eee16918c4e0dc52f680a1b1a8d573aa16b071f

...
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"Joomla\\Tests\\": "tests"
}
},
"scripts": {
"post-install-cmd": [
"phpcs --config-set installed_paths ../../joomla/cms-coding-standards/lib,../../joomla/coding-standards"
]
},
"require": {
"php": ">=7.2",
"joomla/application": "~2.0@dev",
Expand Down

0 comments on commit 1e1514b

Please sign in to comment.