forked from jolicode/elastically
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (15 loc) · 858 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
test: ## Run test suite
./vendor/bin/simple-phpunit
start: ## Start testing tools (Elasticsearch)
docker run --rm -d --name "elastically_es" -p 9200:9200 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch-oss:7.8.0
stop: ## Stop testing tools (Elasticsearch)
docker stop "elastically_es"
kibana: ## Start debug tools (Kibana)
docker run -e "ELASTICSEARCH_HOSTS=http://127.0.0.1:9200/" --network host docker.elastic.co/kibana/kibana-oss:7.8.0
cs: ## Fix PHP CS
./vendor/bin/php-cs-fixer fix --verbose --rules=@Symfony,ordered_imports src/
./vendor/bin/php-cs-fixer fix --verbose --rules=@Symfony,ordered_imports tests/
.PHONY: help
help: ## Display this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-8s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help