forked from phparkitect/arkitect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (40 loc) · 1.59 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: test build db dt dbi dphar csfix
.DEFAULT_GOAL := help
help: ## it shows help menu
@awk 'BEGIN {FS = ":.*#"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?#/ { printf " \033[36m%-27s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
dbi: ## it creates docker image
docker image build -t phparkitect .
shell: ## it enters into the container
docker run --rm -it --entrypoint= -v $(PWD):/arkitect phparkitect bash
test: ## it launches tests
bin/phpunit -v
test_%: ## it launches a test
bin/phpunit --filter $@
%Test: ## it launches a test
bin/phpunit --filter $@
phar: ## it creates phar
rm -rf /tmp/arkitect && mkdir -p /tmp/arkitect
cp -R src bin-stub box.json README.md composer.json phparkitect-stub.php bin /tmp/arkitect
cd /tmp/arkitect && composer install --prefer-source --no-dev -o
bin/box.phar compile -c /tmp/arkitect/box.json
cp /tmp/arkitect/phparkitect.phar .
outdated:
composer outdated
coverage: ## it launches coverage
phpdbg -qrr ./bin/phpunit --coverage-html build/coverage
csfix: ## it launches cs fix
bin/php-cs-fixer fix -v
psalm: ## it launches psalm
bin/psalm
build: ## it launches all the build
composer install
PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix -v
bin/psalm
bin/phpunit
sfbuild: ## it launches all the build
symfony php composer.phar install
PHP_CS_FIXER_IGNORE_ENV=1 symfony php bin/php-cs-fixer fix -v
symfony php bin/psalm
symfony php bin/phpunit
dt: ##it launches tests using container
docker run --rm -it --entrypoint= -v $(PWD):/arkitect phparkitect make test