-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
59 lines (50 loc) · 1.21 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
SHELL := /bin/bash
install: export APP_ENV=dev
install:
docker-compose up -d
composer install
symfony serve -d
npm install
npm run build
symfony console d:d:c
symfony console d:m:m --no-interaction
.PHONY: install
start: export APP_ENV=dev
start:
docker-compose up -d
symfony serve -d
.PHONY: start
fixtures: export APP_ENV=dev
fixtures:
symfony console d:f: --no-interaction
.PHONY: fixtures
stop: export APP_ENV=dev
stop:
docker-compose stop
symfony server:stop
.PHONY: stop
tests: export APP_ENV=test
tests: reset-test
symfony php bin/phpunit --testdox
.PHONY: tests
coverage: export APP_ENV=test
coverage: reset-test
XDEBUG_MODE=coverage symfony php bin/phpunit --coverage-html var/coverage/test-coverage
.PHONY: coverage
reset: export APP_ENV=dev
reset:
symfony console d:d:d --force
symfony console d:d:c
symfony console d:m:m --no-interaction
.PHONY: reset
reset-test: export APP_ENV=test
reset-test:
symfony console d:d:d --force
symfony console d:d:c
symfony console d:m:m --no-interaction
symfony console d:f:l --no-interaction
.PHONY: reset-test
docker-build-and-push:
docker build . -f ./docker/Dockerfile -t yoanbernabeu/cronify
docker push yoanbernabeu/cronify
.PHONY: docker-build-and-push