Skip to content

Commit

Permalink
Add scripts for testing/checking.
Browse files Browse the repository at this point in the history
I saw this in a blog post from weierophinney and thought it was a pretty
nice addition. It enables commands like `composer check` and
`composer test`.
  • Loading branch information
markstory authored and ndm2 committed Nov 2, 2016
1 parent b18d6d8 commit ff2dc01
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,14 @@
"cakephp/orm": "self.version",
"cakephp/utility": "self.version",
"cakephp/validation": "self.version"
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "vendor/bin/phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
"cs-fix": "vendor/bin/phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
"test": "vendor/bin/phpunit --colors=always"
}
}

0 comments on commit ff2dc01

Please sign in to comment.