-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 715 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 715 Bytes
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
.PHONY: help
help:
@echo "Available commands:"
@sed -n 's/^##//p' Makefile | column -t -s ':' | sed -e 's/^/ /'
##make hello - Say hello
hello:
@echo "Hello"
##make up - Build docker image and run docker-compose up
up:
make down
make build
docker-compose up -d
##make down - Stop running docker-compose containers
down:
docker-compose down -v
##make build - Build docker-compsoe images
build:
docker-compose build
##make tests - Run unit tests
tests:
./vendor/bin/phpunit tests/unit
##make deps - Runs composer install through docker
deps:
@(docker run --rm --interactive --tty --volume $$PWD:/app --volume ${COMPOSER_HOME:-$$HOME/.composer}:/tmp composer install --no-interaction --prefer-dist)