File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 43
43
"branch-alias" : {
44
44
"dev-master" : " 1.0-dev"
45
45
}
46
+ },
47
+ "scripts" : {
48
+ "all" : [
49
+ " @fix" ,
50
+ " @analyse" ,
51
+ " @test"
52
+ ],
53
+ "fix" : " php-cs-fixer fix" ,
54
+ "analyse" : " phpstan analyse --no-progress --level=4 --configuration=phpstan.neon src tests" ,
55
+ "test" : [
56
+ " \" vendor/bin/codecept\" build" ,
57
+ " \" vendor/bin/codecept\" run"
58
+ ]
46
59
}
47
60
}
Original file line number Diff line number Diff line change @@ -12,17 +12,14 @@ cd <project_dir>
12
12
# install dependencies
13
13
composer update
14
14
15
- # check coding style
16
- php-cs-fixer fix --dry-run
17
-
18
15
# fix coding style
19
- php-cs-fixer fix
16
+ composer fix
20
17
21
18
# static analysis
22
- phpstan analyse --level=4 --configuration=phpstan.neon src tests
19
+ composer analyse
23
20
24
21
# run tests
25
- sh ./tests/run.sh
22
+ composer test
26
23
```
27
24
28
25
Advanced usage
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments