2017 © Pedro Peláez
 

library phpqatools

Composer package for PHP QA Tools

image

covex-nn/phpqatools

Composer package for PHP QA Tools

  • Wednesday, July 13, 2016
  • by covex-nn
  • Repository
  • 1 Watchers
  • 5 Stars
  • 1,252 Installations
  • PHP
  • 5 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 1 % Grown

The README.md

PHP QA Tools

, (*1)

Contents (Phar files)

  • PHPUnit v4.8.26
  • PHP_CodeSniffer v2.6.1
  • phpDocumentor v2.8.5
  • PHPMD v2.4.3
  • phpcpd v2.0.4
  • phploc v3.0.1
  • PDepend v2.2.4
  • PHP CodeBrowser

Installation

{
  "require-dev" : {
    "covex-nn/phpqatools" : "~2.0"
  }
}

Usage

<?xml version="1.0" encoding="utf-8"?>
<project name="Your project name" default="init">
  <target name="init">
    <echo message="${ant.project.name} Init - OK" />
  </target>
</project>
  • Use this template for build-dev.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="Your project name - PHP QA Tools" default="init">
  <import file="build.xml" />
  <import file="vendor/covex-nn/phpqatools/build.xml" />
</project>
  • Write code, create unit-tests
  • Run ant init
  • Run ant -f build-dev.xml CI-build

To skip one ore more QA tools set appropriate ant property to 1:, (*2)

  • CI.no-pdepend
  • CI.no-phpmd
  • CI.no-phpcpd
  • CI.no-phpcs
  • CI.no-phploc
  • CI.no-phpunit
  • CI.no-phpcb
  • CI.no-phpdoc

To fail or to ignore ant job if CI tool return non-zero result set appropriate ant property to true or to false:, (*3)

  • CI.failonerror-phpunit (default value: true)
  • CI.failonerror-pdepend (default value: false)
  • CI.failonerror-phpmd (default value: false)
  • CI.failonerror-phpcpd (default value: false)
  • CI.failonerror-phpcs (default value: false)
  • CI.failonerror-phploc (default value: false)
  • CI.failonerror-phpcb (default value: false)
  • CI.failonerror-phpdoc (default value: false)

The Versions

13/07 2016

dev-master

9999999-dev

Composer package for PHP QA Tools

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

13/07 2016

2.0.1

2.0.1.0

Composer package for PHP QA Tools

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

09/07 2016

2.0.0

2.0.0.0

Composer package for PHP QA Tools

  Sources   Download

MIT

The Requires

  • php >=5.5.9