Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
325fdb5
commit 5f59a2f
Showing
8 changed files
with
60 additions
and
26 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,57 @@ | ||
SHELL:=/bin/bash | ||
.ONESHELL: | ||
|
||
.PHONY: bash | ||
bash: | ||
@if [[ ! -f /.dockerenv ]]; then | ||
docker exec -ti -u dev jira_status_notifier_php bash | ||
else | ||
echo "You are already into the docker bash."; | ||
fi | ||
|
||
.PHONY: csfix | ||
csfix: | ||
@if [[ -f /.dockerenv ]]; then | ||
cd /srv/jira-status-notifier && vendor/bin/php-cs-fixer fix | ||
else | ||
docker exec -ti -u dev jira_status_notifier_php sh \ | ||
-c "cd /srv/jira-status-notifier && vendor/bin/php-cs-fixer fix" | ||
fi | ||
|
||
# make tests ARGS="--filter AppTest" | ||
.PHONY: tests | ||
tests: | ||
@if [[ -f /.dockerenv ]]; then | ||
cd /srv/jira-status-notifier && vendor/bin/phpunit ${ARGS} --coverage-html coverage; | ||
else | ||
docker exec -ti -u dev jira_status_notifier_php sh \ | ||
-c "cd /srv/jira-status-notifier && vendor/bin/phpunit $(ARGS) --coverage-html coverage" | ||
fi | ||
|
||
# make composer ARGS="require phpunit/phpunit" | ||
.PHONY: composer | ||
composer: | ||
@if [[ -f /.dockerenv ]]; then | ||
cd /srv/jira-status-notifier && composer ${ARGS} | ||
else | ||
docker exec -ti -u dev jira_status_notifier_php sh \ | ||
-c "cd /srv/jira-status-notifier && composer $(ARGS)" | ||
fi | ||
|
||
.PHONY: psalm | ||
psalm: | ||
@if [[ -f /.dockerenv ]]; then | ||
cd /srv/jira-status-notifier && vendor/bin/psalm ${ARGS} | ||
else | ||
docker exec -ti -u dev jira_status_notifier_php sh \ | ||
-c "cd /srv/jira-status-notifier && vendor/bin/psalm ${ARGS}" | ||
fi | ||
|
||
.PHONY: psalm-log | ||
psalm-log: | ||
@if [[ -f /.dockerenv ]]; then | ||
cd /srv/jira-status-notifier && vendor/bin/psalm --output-format=text --show-info=true > psalm.log | ||
else | ||
docker exec -ti -u dev jira_status_notifier_php sh \ | ||
-c "cd /srv/jira-status-notifier && vendor/bin/psalm --output-format=text --show-info=true > psalm.log" | ||
fi |
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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