-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
34 lines (26 loc) · 983 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
help:
@echo "This makefile is intended mainly for development purpose."
@echo ""
@echo "Targets:"
@echo " install: This will setup the development environment or reset the current one"
@echo " up: docker-compose up the development environment"
@echo " down: docker-compose down the development environment"
@echo " provision: provision the data, this should be executed after a clear"
@echo " build: rebuild all the needed container"
@echo " php: will connect to the php container"
.ONESHELL:
down:
docker-compose down --remove-orphans
up:
docker-compose up -d
build:
docker-compose build
install: build provision
php:
docker exec -it php bash
test:
docker-compose exec php php vendor/bin/simple-phpunit
test-coverage:
docker-compose exec php php vendor/bin/phpunit --coverage-html ./tmp/phpunit/report
provision: up
docker-compose exec php composer install