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:
parent
0909e60392
commit
5f3086ba95
@ -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
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user