-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 1.08 KB
/
Makefile
File metadata and controls
39 lines (28 loc) · 1.08 KB
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
.PHONY: test build phar csfix
.DEFAULT_GOAL := help
TMP_DIR = /tmp/arkitect
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)
test: ## it launches tests
bin/phpunit
test_%: ## it launches a test
bin/phpunit --filter $@
%Test: ## it launches a test
bin/phpunit --filter $@
phar: ## it creates phar
rm -rf ${TMP_DIR} && mkdir -p ${TMP_DIR}
cp -R src bin-stub box.json README.md composer.json phparkitect-stub.php bin ${TMP_DIR}
cd ${TMP_DIR} && composer install --prefer-source --no-dev -o
bin/box.phar compile -c ${TMP_DIR}/box.json
cp ${TMP_DIR}/phparkitect.phar .
outdated:
composer outdated
csfix: ## it launches cs fix
PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix -v
psalm: ## it launches psalm
bin/psalm.phar --no-cache
build: ## it launches all the build
composer install
PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix -v
bin/psalm.phar --no-cache
bin/phpunit