Note: This scripts should be run from root php_nml directory (where
composer.json
is).
-
composer test-code
: Runs unit-testing tests with PHPUnit. You can pass more phpunit args with-- <arg>
. For example:composer test-code -- --verbose
. -
composer analize-code
: Runs coding standards checks (PHP: Code Sniffer). -
composer autofix-code
: Runs coding standard auto-fixes (PHP: Code Sniffer). -
composer check-all
: Runs coding standard analisis (PHP: Code Sniffer) + tests (PHPUnit). -
composer build
: Run this sub-scripts:composer build-code-coverage
: Runs tests and build code coverage reports (XML and HTML formats) inoutput/code-coverage/
directory.
- For XML format only (
output/code-coverage/clover.xml
):composer build-code-coverage-clover
orcomposer build-code-coverage-xml
(alias). - For HTML format only:
composer build-code-coverage-html
.
-
composer build-api
: Generates API documentation inoutput/api/
directory using ApiGen.
.travis/deploy-documentation
: Generates documentation and publish it ingh-pages
brach. Note: This script is used by Travis CI to publish documentation and should not be run in local development.