File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ DOCKER_RUN = docker-compose run client_72
2+
3+ .PHONY : help
4+ help :
5+ @grep -E ' (^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[32m%-25s\033[0m %s\n", $$1, $$2}' | sed -e ' s/\[32m##/[33m/'
6+
7+ .PHONY : dependencies
8+ dependencies : # # Install composer dependencies
9+ cp docker-compose.yml.dist docker-compose.yml
10+ rm -rf composer.lock vendor/
11+ $(DOCKER_RUN ) composer install
12+
13+ .PHONY : tests
14+ tests : # # Run PHPUnit & PHPSpec tests, and code style check
15+ @echo " -----------"
16+ @echo " - PHPUnit -"
17+ @echo " -----------"
18+ $(DOCKER_RUN ) bin/phpunit -c phpunit.xml.dist
19+ @echo " "
20+ @echo " -----------"
21+ @echo " - PHPSpec -"
22+ @echo " -----------"
23+ $(DOCKER_RUN ) bin/phpspec run
24+ @echo " ------------------"
25+ @echo " - PHP code style -"
26+ @echo " ------------------"
27+ $(DOCKER_RUN ) bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
28+
29+ .PHONY : fix-cs
30+ fix-cs : # # Fix PHP code style
31+ $(DOCKER_RUN ) bin/php-cs-fixer fix --config=.php_cs.php
Original file line number Diff line number Diff line change @@ -155,6 +155,13 @@ docker-compose run client_72 bin/phpspec run
155155docker-compose run client_72 bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
156156```
157157
158+ Or use ` make ` :
159+
160+ ```
161+ make dependencies
162+ make tests
163+ ```
164+
158165## Support
159166
160167The support of this client is made in best effort by our Akeneo team.
You can’t perform that action at this time.
0 commit comments