-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (65 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
79 lines (65 loc) · 1.48 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#/bin/bash
run=docker-compose exec php
# Build local images
.PHONY: build
build:
docker-compose build
# Run containers as demon
.PHONY: up
up:
docker-compose up -d
# Stops all containers
.PHONY: stop
stop:
docker-compose stop
# Down all containers and remove volumes
.PHONY: down
down:
docker-compose down -v
# Stops all containers and removes all local images
.PHONY: remove
remove:
make down
docker rmi curler7/user-bundle_php
# Run all tests
.PHONY: tests
tests:
make up
${run} composer prepare-orm-test
${run} composer load-fixtures-test
${run} vendor/bin/simple-phpunit
# Run single test: make test args="IndexTest.php"
.PHONY: test
test:
make up
${run} composer prepare-orm-test
${run} composer load-fixtures-test
${run} vendor/bin/simple-phpunit --filter=${args}
# Run composer with args. make composer args="..."
.PHONY: composer
composer:
make up
${run} composer ${args}
# Run composer update
.PHONY: composer-update
composer-update:
make composer args=update
# Run composer require with args. make composer-require args="..."
.PHONY: composer-require
composer-require:
make composer args="require ${args}"
# Run symfony console with args. make console args="..."
.PHONY: console
console:
make up
${run} fixtures/bin/console ${args}
# Run symfony console with args. make console args="..."
.PHONY: console-cache-clear
console-cache-clear:
make console args=cache:clear
# Run git push.
.PHONY: git-push
git-push:
git add -A
git commit -m "s"
git push origin master