Skip to content

Commit bef7195

Browse files
committed
Add lint build step
1 parent 990de9d commit bef7195

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ matrix:
1414
before_script:
1515
- travis_retry yarn add danger
1616
script:
17+
- composer lint
1718
- composer analyze
1819
- yarn danger ci
1920
after_success: ~

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"lmc/coding-standard": "^2.0",
1616
"mockery/mockery": "^1.3",
1717
"php-coveralls/php-coveralls": "^2.2",
18+
"php-parallel-lint/php-parallel-lint": "^1.2",
1819
"phpstan/extension-installer": "^1.0",
1920
"phpstan/phpstan": "^0.12.23",
2021
"phpstan/phpstan-beberlei-assert": "^0.12.2",
@@ -39,6 +40,7 @@
3940
},
4041
"scripts": {
4142
"all": [
43+
"@lint",
4244
"@analyze",
4345
"@tests"
4446
],
@@ -47,7 +49,15 @@
4749
"@phpstan"
4850
],
4951
"cs": "vendor/bin/ecs check --ansi src/ tests/",
50-
"fix": "vendor/bin/ecs check --ansi --clear-cache --fix src/ tests/",
52+
"fix": [
53+
"vendor/bin/ecs check --ansi --clear-cache --fix src/ tests/",
54+
"@composer normalize"
55+
],
56+
"lint": [
57+
"vendor/bin/parallel-lint -j 10 ./src ./tests",
58+
"@composer validate",
59+
"@composer normalize --dry-run"
60+
],
5161
"phpstan": "vendor/bin/phpstan analyze -c phpstan.neon --ansi",
5262
"tests": "vendor/bin/phpunit",
5363
"tests-ci": "mkdir -p reports && php -dxdebug.coverage_enable=1 vendor/bin/phpunit -c phpunit.xml.dist"

0 commit comments

Comments
 (0)