-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (68 loc) · 4.07 KB
/
Makefile
File metadata and controls
81 lines (68 loc) · 4.07 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
80
81
BG_RED=\033[41m
BG_GREEN=\033[42m
BG_YELLOW=\033[43m
BG_BLUE=\033[44m
NC=\033[0m
php-cs-fixer:
php vendor/bin/php-cs-fixer fix --config .php-cs-fixer.dist.php -v
phpstan:
php vendor/bin/phpstan analyse -c phpstan.dist.neon --memory-limit=-1
bearer:
./bin/bearer scan ./
webpack-watch:
npm install
npm run watch
test:
php bin/phpunit
reset_db:
@echo "$(NC) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(BG_BLUE) Datenbanken werden gelöscht... $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(NC) $(NC)"
@php bin/console doctrine:database:drop -q --force --env=dev || true
@php bin/console doctrine:database:drop -q --force --env=test ||true
@echo "$(NC) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(BG_BLUE) Datenbanken werden erstellt... $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(NC) $(NC)"
@php bin/console doctrine:database:create -q --env=dev || true
@php bin/console doctrine:database:create -q --env=test || true
@echo "$(NC) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(BG_BLUE) Migrationen werden ausgeführt... $(NC)"
@echo "$(BG_BLUE) (Ja, dass kann was länger dauern :) ) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(NC) $(NC)"
@php bin/console doctrine:migrations:migrate -q --no-interaction
@php bin/console doctrine:migrations:migrate -q --no-interaction --env=test
@echo "$(NC) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(BG_BLUE) Auf Entity Updates prüfen... $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(NC) $(NC)"
@php bin/console make:migration --no-interaction -q
@php bin/console doctrine:migrations:migrate -q --no-interaction
@php bin/console doctrine:migrations:migrate -q --no-interaction --env=test
load-fixtures: reset_db
@echo "$(NC) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(BG_BLUE) Fixtures laden... $(NC)"
@echo "$(BG_BLUE) (Ja, dass kann was länger dauern :) ) $(NC)"
@echo "$(BG_BLUE) $(NC)"
@echo "$(NC) $(NC)"
php bin/console doctrine:fixtures:load --env=dev --no-interaction
@echo "$(NC) $(NC)"
@echo "$(BG_GREEN) $(NC)"
@echo "$(BG_GREEN) Fertig! $(NC)"
@echo "$(BG_GREEN) $(NC)"
@echo "$(NC) $(NC)"
tileserver:
ifeq (, $(shell which tileserver-gl))
$(info "tileserver-gl is not installed. Installing now...")
npm install -g tileserver-gl
else
$(info "tileserver-gl is already installed.")
endif
tileserver-gl --config tileserver-config.json