forked from teamleadercrm/coding-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 709 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 709 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
32
33
34
35
36
DOCKER := docker compose
DOCKER_EXEC := docker exec -it app-php
.PHONY: setup
setup: ## Setup local environment
$(MAKE) build
$(MAKE) start
$(MAKE) install
.PHONY: start
start: ## Start local server
$(DOCKER) up --pull always -d --wait
.PHONY: restart
restart: ## Restart local server
$(DOCKER) restart
.PHONY: stop
stop: ## Stop local server
$(DOCKER) down
.PHONY: build
build: ## Build php docker image
$(DOCKER) build --no-cache
.PHONY: install
install: ## Install dependencies
$(DOCKER_EXEC) composer install --no-scripts
.PHONY: bash
bash: ## Install dependencies
$(DOCKER_EXEC) bash
.PHONY: tests
tests: ## Run only phpunit tests
$(DOCKER_EXEC) php vendor/bin/phpunit -c phpunit.xml