PHPQA MAkefile
This repository contains a Makefile wich support several tools from http://jenkins-php.org/, (*1)
Its a alternative for the build.xml file, and provides a much faster running using Makefile parallel jobs., (*2)
Install
$ composer require rodrigorm/phpqa-make
Usage
You can use directly from command line:, (*3)
$ make -f vendor/rodrigorm/phpqa-make/Makefile phpqa-build
Or using include from your Makefile, if you want for example setup some variables:, (*4)
SRCDIR = lib
BIN = bin
include vendor/rodrigorm/phpqa-make/Makefile
Recipes
Lint
Perform syntax check of sourcecode files, (*5)
$ make phpqa-lint
PHPLOC
Measure project size using PHPLOC, (*6)
$ make phpqa-phploc
PDepend
Calculate software metrics using PHP_Depend, (*7)
$ make phpqa-pdepend
PHPMD
Perform project mess detection using PHPMD creating a log file for the continuous integration server, (*8)
$ make phpqa-phpmd
PHPCS
Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing., (*9)
$ make phpqa-phpcs
Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server, (*10)
$ make phpqa-phpcs-ci
PHPCPD
Find duplicate code using PHPCPD, (*11)
$ make phpqa-phpcpd
PHPUnit
Run unit tests with PHPUnit, (*12)
$ make phpqa-phpunit
Run unit tests with PHPUnit and generate coverage, (*13)
$ make phpqa-phpunit-ci
License
Copyright (C) 2014 Rodrigo Moyle rodrigorm@gmail.com, (*14)
This program is free software: you can redistribute it and/or modify
it under the terms of the Lesser GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version., (*15)
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details., (*16)
You should have received a copy of the Lesser GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/., (*17)