-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (21 loc) · 1.22 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
generate_addresses_db: ## Generate the address database from data file (WIP)
zcat data/2014_reserve_parlementaire.json.zip | jq -C ".[] | .Adresse" | grep -v "\"\"" | grep -v "\"Mairie\"" | grep -v "\"-\"" > data/2014_addresses.csv
install: ## Install related dependencies
@composer install
test: ## Run the whole testsuite
@vendor/bin/phpunit src/Parlementaires/ --color
spec: ## Run the whole testsuite to display a testdox agile spec
@vendor/bin/phpunit src/Parlementaires/ --color --testdox
start: ## Start a webserver for our awesome app
@php -S 0.0.0.0:8080 -t src/Parlementaires/Infrastructure/Web
clear_event_store: ## Truncate the file based event store
@rm -f data/eventstore/*.json
docker_build: ## Build the Docker image
@docker build . -t cqrs-es-camboui:latest
docker_run: docker_build ## Launch the web application in Docker
@docker run --rm -p 8080:8080 -e XDEBUG_CONFIG="remote_host=192.168.1.144 idekey=xdebug" cqrs-es-camboui:latest
# Automatic documentation. See http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'