Add composer lint, phpcs, and test commands
authorKunal Mehta <legoktm@gmail.com>
Tue, 6 Jan 2015 18:47:25 +0000 (10:47 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Sun, 1 Mar 2015 07:07:38 +0000 (07:07 +0000)
commit1999eb3879621b562abb43c0d112fac79db623e1
tree55f6aa517829d0a24013a2bef6dec70df9b9e46b
parentcebc252065cd6293604e552393b3b3fb402dc2cc
Add composer lint, phpcs, and test commands

lint uses jakub-onderka/php-parallel-lint to check the syntax of the provided
PHP files or directories.

phpcs uses the MediaWiki codesniffer standard to check the provided files or
directories.

test runs both lint and phpcs together. phpunit is not included at this time
because our phpunit tests require a database to be set up and are very very
slow.

Example usage:
  composer lint .  # Lint all files
  composer phpcs includes/FooBar.php  # Check code style of one file
  composer test extensions/FooBar  # Lint and check an extension

Change-Id: I3c7ac7a02668776de6400ac268f37e7e6b35a3c6
composer.json