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 committed Oct 26, 2016
1 parent 2ca8fe1 commit 489b5f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions composer.json
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 489b5f8

Please sign in to comment.