QA: Use Composer for Travis test tools

This commit is contained in:
Ivan Lanin 2014-06-22 09:27:10 +07:00
parent 5be8414ef8
commit 8efe80b5c1
3 changed files with 419 additions and 25 deletions

View File

@ -23,17 +23,6 @@ before_script:
## Composer ## Composer
- composer self-update - composer self-update
- composer install --prefer-source --dev - composer install --prefer-source --dev
## PHP Copy/Paste Detector
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
## PHP Mess Detector
- pear config-set preferred_state beta
- printf "\n" | pecl install imagick
- pear channel-discover pear.phpmd.org
- pear channel-discover pear.pdepend.org
- pear install --alldeps phpmd/PHP_PMD
- phpenv rehash
## PHPLOC
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
## PHPDocumentor ## PHPDocumentor
- mkdir -p build/docs - mkdir -p build/docs
- mkdir -p build/coverage - mkdir -p build/coverage
@ -42,15 +31,15 @@ script:
## PHP_CodeSniffer ## PHP_CodeSniffer
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip - ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip
## PHP Copy/Paste Detector ## PHP Copy/Paste Detector
- php phpcpd.phar src/ tests/ --verbose - ./vendor/bin/phpcpd src/ tests/ --verbose
## PHP Mess Detector ## PHP Mess Detector
- phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php - ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php
## PHPLOC
#- php phploc.phar src/
## PHPUnit ## PHPUnit
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage - ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage
## PHPLOC
- ./vendor/bin/phploc src/
## PHPDocumentor ## PHPDocumentor
- vendor/bin/phpdoc -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig" - ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig"
after_script: after_script:
## PHPDocumentor ## PHPDocumentor

View File

@ -39,6 +39,9 @@
"phpunit/phpunit": "3.7.*", "phpunit/phpunit": "3.7.*",
"phpdocumentor/phpdocumentor":"2.*", "phpdocumentor/phpdocumentor":"2.*",
"squizlabs/php_codesniffer": "1.*", "squizlabs/php_codesniffer": "1.*",
"phpmd/phpmd": "dev-master",
"sebastian/phpcpd": "*",
"phploc/phploc": "*",
"dompdf/dompdf":"0.6.*", "dompdf/dompdf":"0.6.*",
"tecnick.com/tcpdf": "6.*", "tecnick.com/tcpdf": "6.*",
"mpdf/mpdf": "5.*" "mpdf/mpdf": "5.*"

418
composer.lock generated
View File

@ -1,9 +1,10 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
], ],
"hash": "7d0a883164ca8e64ca34f4910aa64b96", "hash": "8ffa35e0864738ed4325f961b941c0d2",
"packages": [ "packages": [
], ],
@ -706,6 +707,45 @@
], ],
"time": "2013-08-25 17:11:40" "time": "2013-08-25 17:11:40"
}, },
{
"name": "pdepend/pdepend",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/pdepend/pdepend.git",
"reference": "b74f2bb68e86104cd97dfb8d74209692c9b465ce"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pdepend/pdepend/zipball/b74f2bb68e86104cd97dfb8d74209692c9b465ce",
"reference": "b74f2bb68e86104cd97dfb8d74209692c9b465ce",
"shasum": ""
},
"require": {
"symfony/config": "@stable",
"symfony/dependency-injection": "@stable",
"symfony/filesystem": "@stable"
},
"require-dev": {
"phpunit/phpunit": "3.*@stable",
"squizlabs/php_codesniffer": "@stable"
},
"bin": [
"src/bin/pdepend"
],
"type": "library",
"autoload": {
"psr-0": {
"PDepend\\": "src/main/php/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "Official version of pdepend to be handled with Composer",
"time": "2014-05-21 09:48:10"
},
{ {
"name": "phenx/php-font-lib", "name": "phenx/php-font-lib",
"version": "0.2.2", "version": "0.2.2",
@ -1406,6 +1446,98 @@
], ],
"time": "2013-09-09 06:13:02" "time": "2013-09-09 06:13:02"
}, },
{
"name": "phploc/phploc",
"version": "2.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phploc.git",
"reference": "d177c22e2a08e448f7bdfa762045f7bd086834d7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phploc/zipball/d177c22e2a08e448f7bdfa762045f7bd086834d7",
"reference": "d177c22e2a08e448f7bdfa762045f7bd086834d7",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"sebastian/finder-facade": ">=1.1.0",
"sebastian/git": ">=1.0.0",
"sebastian/version": ">=1.0.3",
"symfony/console": ">=2.2.0"
},
"bin": [
"phploc"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "A tool for quickly measuring the size of a PHP project.",
"homepage": "https://github.com/sebastianbergmann/phploc",
"time": "2014-04-27 06:47:27"
},
{
"name": "phpmd/phpmd",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/phpmd/phpmd.git",
"reference": "68ced5452910d3555a38720bd87f5f2356c5a003"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpmd/phpmd/zipball/68ced5452910d3555a38720bd87f5f2356c5a003",
"reference": "68ced5452910d3555a38720bd87f5f2356c5a003",
"shasum": ""
},
"require": {
"pdepend/pdepend": "2.0.*",
"php": ">=5.3.0",
"symfony/config": "@stable",
"symfony/dependency-injection": "@stable",
"symfony/filesystem": "@stable"
},
"bin": [
"src/bin/phpmd"
],
"type": "library",
"autoload": {
"psr-0": {
"PHPMD\\": "src/main/php",
"PDepend\\": "vendor/pdepend/pdepend/src/main/php/"
}
},
"notification-url": "https://packagist.org/downloads/",
"include-path": [
"../../pdepend/pdepend/src/main/php",
"src/main/php"
],
"license": [
"BSD-3-Clause"
],
"description": "Official version of PHPMD handled with Composer.",
"time": "2014-05-21 12:45:23"
},
{ {
"name": "phpoption/phpoption", "name": "phpoption/phpoption",
"version": "1.4.0", "version": "1.4.0",
@ -1907,6 +2039,177 @@
], ],
"time": "2012-12-21 11:40:51" "time": "2012-12-21 11:40:51"
}, },
{
"name": "sebastian/finder-facade",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/finder-facade.git",
"reference": "1e396fda3449fce9df032749fa4fa2619e0347e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/finder-facade/zipball/1e396fda3449fce9df032749fa4fa2619e0347e0",
"reference": "1e396fda3449fce9df032749fa4fa2619e0347e0",
"shasum": ""
},
"require": {
"symfony/finder": ">=2.2.0",
"theseer/fdomdocument": ">=1.3.1"
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "FinderFacade is a convenience wrapper for Symfony's Finder component.",
"homepage": "https://github.com/sebastianbergmann/finder-facade",
"time": "2013-05-28 06:10:03"
},
{
"name": "sebastian/git",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/git.git",
"reference": "572c35353fefcc8607d6fef0e362a9f3a5e84d96"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/git/zipball/572c35353fefcc8607d6fef0e362a9f3a5e84d96",
"reference": "572c35353fefcc8607d6fef0e362a9f3a5e84d96",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "Simple wrapper for Git",
"homepage": "http://www.github.com/sebastianbergmann/git",
"keywords": [
"git"
],
"time": "2014-06-14 07:12:53"
},
{
"name": "sebastian/phpcpd",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpcpd.git",
"reference": "a9462153f2dd90466a010179901d31fbff598365"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpcpd/zipball/a9462153f2dd90466a010179901d31fbff598365",
"reference": "a9462153f2dd90466a010179901d31fbff598365",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"phpunit/php-timer": ">=1.0.4",
"sebastian/finder-facade": ">=1.1.0",
"sebastian/version": ">=1.0.3",
"symfony/console": ">=2.2.0",
"theseer/fdomdocument": "~1.4"
},
"bin": [
"phpcpd"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "Copy/Paste Detector (CPD) for PHP code.",
"homepage": "https://github.com/sebastianbergmann/phpcpd",
"time": "2014-03-31 09:25:30"
},
{
"name": "sebastian/version",
"version": "1.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
"reference": "b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/version/zipball/b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43",
"reference": "b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43",
"shasum": ""
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
"time": "2014-03-07 15:35:33"
},
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "1.5.3", "version": "1.5.3",
@ -2089,6 +2392,65 @@
"homepage": "http://symfony.com", "homepage": "http://symfony.com",
"time": "2014-05-22 08:54:24" "time": "2014-05-22 08:54:24"
}, },
{
"name": "symfony/dependency-injection",
"version": "v2.5.0",
"target-dir": "Symfony/Component/DependencyInjection",
"source": {
"type": "git",
"url": "https://github.com/symfony/DependencyInjection.git",
"reference": "5dfb4c2b74c4976efe1efa783370da656a2dd742"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/DependencyInjection/zipball/5dfb4c2b74c4976efe1efa783370da656a2dd742",
"reference": "5dfb4c2b74c4976efe1efa783370da656a2dd742",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/config": "~2.2",
"symfony/expression-language": "~2.4",
"symfony/yaml": "~2.0"
},
"suggest": {
"symfony/config": "",
"symfony/proxy-manager-bridge": "Generate service proxies to lazy load them",
"symfony/yaml": ""
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.5-dev"
}
},
"autoload": {
"psr-0": {
"Symfony\\Component\\DependencyInjection\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com",
"homepage": "http://fabien.potencier.org",
"role": "Lead Developer"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony DependencyInjection Component",
"homepage": "http://symfony.com",
"time": "2014-05-12 09:28:39"
},
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v2.5.0", "version": "v2.5.0",
@ -2524,11 +2886,11 @@
}, },
{ {
"name": "tecnick.com/tcpdf", "name": "tecnick.com/tcpdf",
"version": "6.0.083", "version": "6.0.086",
"source": { "source": {
"type": "git", "type": "git",
"url": "git://git.code.sf.net/p/tcpdf/code", "url": "git://git.code.sf.net/p/tcpdf/code",
"reference": "d6a2206ab366f493680a22151429f17fd045fe04" "reference": "b1c0cc74a84948029d8c9824736d9021871a63a7"
}, },
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3.0"
@ -2577,7 +2939,47 @@
"pdf417", "pdf417",
"qrcode" "qrcode"
], ],
"time": "2014-05-29 18:28:56" "time": "2014-06-20 15:28:34"
},
{
"name": "theseer/fdomdocument",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/theseer/fDOMDocument.git",
"reference": "137aa3b13bef05b4e301899cbabdaf7d501847d2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/theseer/fDOMDocument/zipball/137aa3b13bef05b4e301899cbabdaf7d501847d2",
"reference": "137aa3b13bef05b4e301899cbabdaf7d501847d2",
"shasum": ""
},
"require": {
"ext-dom": "*",
"lib-libxml": "*",
"php": ">=5.3.3"
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Arne Blankerts",
"email": "arne@blankerts.de",
"role": "lead"
}
],
"description": "The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for convenience and to simplify the usage of DOM.",
"homepage": "https://github.com/theseer/fDOMDocument",
"time": "2014-02-19 00:20:43"
}, },
{ {
"name": "twig/twig", "name": "twig/twig",
@ -3219,9 +3621,9 @@
], ],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": [ "stability-flags": {
"phpmd/phpmd": 20
], },
"platform": { "platform": {
"php": ">=5.3.3", "php": ">=5.3.3",
"ext-xml": "*" "ext-xml": "*"