Skip to content

Commit

Permalink
Add composer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Feb 8, 2017
1 parent b171b74 commit f77122b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,18 @@
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"scripts": {
"all": [
"@fix",
"@analyse",
"@test"
],
"fix": "php-cs-fixer fix",
"analyse": "phpstan analyse --no-progress --level=4 --configuration=phpstan.neon src tests",
"test": [
"\"vendor/bin/codecept\" build",
"\"vendor/bin/codecept\" run"
]
}
}
9 changes: 3 additions & 6 deletions tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ cd <project_dir>
# install dependencies
composer update
# check coding style
php-cs-fixer fix --dry-run
# fix coding style
php-cs-fixer fix
composer fix
# static analysis
phpstan analyse --level=4 --configuration=phpstan.neon src tests
composer analyse
# run tests
sh ./tests/run.sh
composer test
```

Advanced usage
Expand Down
2 changes: 0 additions & 2 deletions tests/run.sh

This file was deleted.

0 comments on commit f77122b

Please sign in to comment.