-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mtrdesign/make_commands
Added MAKE commands to handle the local dev process
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
docker-build: | ||
docker build --pull -t mtrdesign/s3-logs-parser . | ||
docker rm --force s3-logs-parser | ||
docker run --name s3-logs-parser \ | ||
-v ${PWD}:/app \ | ||
-it mtrdesign/s3-logs-parser \ | ||
composer install | ||
|
||
docker-bash: | ||
docker rm --force s3-logs-parser | ||
docker run --name s3-logs-parser \ | ||
-v ${PWD}:/app \ | ||
-it mtrdesign/s3-logs-parser \ | ||
/bin/bash | ||
|
||
run-phpcs: | ||
docker rm --force s3-logs-parser | ||
docker run --name s3-logs-parser \ | ||
-v ${PWD}:/app \ | ||
-it mtrdesign/s3-logs-parser \ | ||
vendor/bin/phpcs -p --standard=PSR2 src tests | ||
|
||
run-phpstan: | ||
docker rm --force s3-logs-parser | ||
docker run --name s3-logs-parser \ | ||
-v ${PWD}:/app \ | ||
-it mtrdesign/s3-logs-parser \ | ||
vendor/bin/phpstan analyse --level 7 src | ||
|
||
run-phpunit: | ||
docker rm --force s3-logs-parser | ||
docker run --name s3-logs-parser \ | ||
-v ${PWD}:/app \ | ||
-it mtrdesign/s3-logs-parser \ | ||
vendor/bin/phpunit --coverage-clover=coverage.xml --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters