-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
101 lines (73 loc) · 1.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/make -f
ifneq ($(shell docker compose version 2>/dev/null),)
DOCKER_COMPOSE=docker compose
else
DOCKER_COMPOSE=docker-compose
endif
ifneq ("$(shell whoami)", "skpr")
EXEC=$(DOCKER_COMPOSE) exec -T php-cli
endif
DRUSH=$(EXEC) ./bin/drush
DRUSH_INSTALL=$(DRUSH) -y site:install --account-pass=password
GIT_SWITCH=cd app && git switch
PHP_VERSION=8.3
clean: composer minimal login
composer:
rm -rf composer.lock vendor app/vendor
$(EXEC) composer install --ignore-platform-req=php
start: stop-php
PHP_VERSION=$(PHP_VERSION) $(DOCKER_COMPOSE) up --build -d --wait
stop:
$(DOCKER_COMPOSE) stop
stop-php:
$(DOCKER_COMPOSE) stop php-cli php-fpm
minimal:
$(DRUSH_INSTALL) minimal
standard:
$(DRUSH_INSTALL) standard
umami:
$(DRUSH_INSTALL) demo_umami
login:
$(DRUSH) -y user:login
switch:
$(GIT_SWITCH) $(BRANCH)
9.3: php8.0
$(GIT_SWITCH) 9.3.x
make clean
9.4: php8.0
$(GIT_SWITCH) 9.4.x
make clean
9.5: php8.1
$(GIT_SWITCH) 9.5.x
make clean
10.0: php8.1
$(GIT_SWITCH) 10.0.x
make clean
10.1: php8.2
$(GIT_SWITCH) 10.1.x
make clean
10.2: php8.2
$(GIT_SWITCH) 10.2.x
make clean
10.3: php8.3
$(GIT_SWITCH) 10.3.x
make clean
10.4: php8.3
$(GIT_SWITCH) 10.4.x
make clean
11.0: php8.3
$(GIT_SWITCH) 11.0.x
make clean
11.x: php8.3
$(GIT_SWITCH) 11.x
make clean
php7.4:
make start -e PHP_VERSION=7.4
php8.0:
make start -e PHP_VERSION=8.0
php8.1:
make start -e PHP_VERSION=8.1
php8.2:
make start -e PHP_VERSION=8.2
php8.3:
make start -e PHP_VERSION=8.3