File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ matrix:
14
14
before_script :
15
15
- travis_retry yarn add danger
16
16
script :
17
+ - composer lint
17
18
- composer analyze
18
19
- yarn danger ci
19
20
after_success : ~
Original file line number Diff line number Diff line change 15
15
"lmc/coding-standard" : " ^2.0" ,
16
16
"mockery/mockery" : " ^1.3" ,
17
17
"php-coveralls/php-coveralls" : " ^2.2" ,
18
+ "php-parallel-lint/php-parallel-lint" : " ^1.2" ,
18
19
"phpstan/extension-installer" : " ^1.0" ,
19
20
"phpstan/phpstan" : " ^0.12.23" ,
20
21
"phpstan/phpstan-beberlei-assert" : " ^0.12.2" ,
39
40
},
40
41
"scripts" : {
41
42
"all" : [
43
+ " @lint" ,
42
44
" @analyze" ,
43
45
" @tests"
44
46
],
47
49
" @phpstan"
48
50
],
49
51
"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
+ ],
51
61
"phpstan" : " vendor/bin/phpstan analyze -c phpstan.neon --ansi" ,
52
62
"tests" : " vendor/bin/phpunit" ,
53
63
"tests-ci" : " mkdir -p reports && php -dxdebug.coverage_enable=1 vendor/bin/phpunit -c phpunit.xml.dist"
You can’t perform that action at this time.
0 commit comments