-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
42 lines (30 loc) · 990 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
31
32
33
34
35
36
37
38
39
40
41
42
help: ## Prints this help
@grep -E '^([a-zA-Z0-9_-]|\%|\/)+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {sub(/\%/, "<blah>", $$1)}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
default:
composer install
distclean: ## Distclean
rm -rf vendor/
make dev-stop
make dev-distclean
test: ## Run PHPUnit tests
./vendor/bin/phpunit
psalm: ## Run Psalm validation
./vendor/bin/psalm
test: psalm phpunit
##
## Local development
##
dev-install: default dev ## Create a local development environment
dev-init:
docker-compose build
dev: dev-init ## Start up your development environment (will create a new one if none present)
docker-compose up -d
dev-stop: ## End the current development environment
docker-compose down
dev-distclean: ## Wipe the current development environment
docker-compose down --rmi all
dev-ssh: ## SSH into your current development environment
docker exec -it shepherd-php /bin/bash
deploy:
docker build . -t $(name)
docker push $(name)