-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (43 loc) · 1.29 KB
/
Makefile
File metadata and controls
64 lines (43 loc) · 1.29 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
PROJECT_CODE=groovbox
COMPOSE=docker-compose -p $(PROJECT_CODE)
COMPOSE_TEST=bin/test_env.sh
RUN=$(COMPOSE) run --rm tools
RUN_TEST=$(COMPOSE_TEST) run --rm tools
# ----------------#
# base #
# ----------------#
all: configure build start install
local: configure-local build start-local install
configure:
#cp -n docker-compose.override.yml.dist docker-compose.override.yml || true
configure-local:
#cp -n docker-compose.override.yml.dist docker-compose.override.yml || true
build:
$(COMPOSE) pull && $(COMPOSE) build
clean:
$(COMPOSE) kill
$(COMPOSE) rm -vf
start:
$(COMPOSE) up -d --remove-orphans
install: composer-install front-install
# ----------------#
# tests #
# ----------------#
cs:
$(RUN_TEST) bin/php-cs-fixer fix --no-interaction --dry-run --level=symfony --diff -vvv
csfix:
$(RUN) bin/php-cs-fixer fix --no-interaction --level=symfony --diff -vvv
# ----------------#
# internals #
# ----------------#
composer-install:
$(RUN) composer install --no-interaction --prefer-dist
composer-update:
$(RUN) composer update
front-install:
$(RUN) npm install
# ----------------#
# sync files #
# ----------------#
upload-files-staging:
# scp -r sites/default/files/[!.]* www-data@barry.local:/var/www/vhosts/www.oksilio.local/shared/sites/default/files/