-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 912 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
TEST_NAME :=
DEBUG :=
test: test-unit
clean-test: clean-install test-unit
test-unit: phpcbf phpcs
docker-compose run --rm web sh -c "php ./vendor/bin/codecept run unit ${TEST_NAME} ${DEBUG} --coverage --coverage-html"
test-unit-debug: DEBUG := -vvv -d
test-unit-debug: test-unit
clean:
rm -rf vendor/ composer.lock cpresources web
composer-install:
docker run --rm -it -v "${PWD}:/var/www/html/" flipbox/php:72-apache sh -c "composer install"
clean-install: clean composer-install
phpcs: composer-install
docker run --rm -it -v "${PWD}:/var/www/html" \
flipbox/php:72-apache sh -c "./vendor/bin/phpcs --standard=psr2 --ignore=./src/web/assets/*/dist/*,./src/migrations/m* ./src"
phpcbf: composer-install
docker run --rm -it -v "${PWD}:/var/www/html" \
flipbox/php:72-apache sh -c "./vendor/bin/phpcbf --standard=psr2 ./src"
# DOCS
docs-build:
npm run docs:build
docs-dev:
npm run docs:dev