1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

Use parallel-lint for linting

This commit is contained in:
Niklas Keller 2016-11-16 14:14:10 +01:00
parent 0909e60392
commit 5f3086ba95
2 changed files with 6 additions and 4 deletions

View File

@ -18,8 +18,8 @@ cache:
install:
- composer install
- composer show
- composer show -t
script:
- find -name "*.php" -not -path "./vendor/*" -print0 | xargs -n 1 -0 php -l
- $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- php vendor/bin/parallel-lint --exclude vendor .
- php vendor/bin/phpunit --coverage-text

View File

@ -7,7 +7,9 @@
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": "^4|^5"
"phpunit/phpunit": "^4|^5",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"jakub-onderka/php-console-highlighter": "^0.3.2"
},
"autoload": {
"psr-4": {