forked from Mosasauroidea/GazellePW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (42 loc) · 1.38 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
.DEFAULT_GOAL := help
.SILENT: help
.PHONY: help
help:
echo ' help - output this message'
echo ' build-css - build the CSS'
echo ' lint-css - lint (style check) the CSS'
echo ' mysqldump - dump mysql database from docker to db/data/gazelle.sql'
echo ' ocelot-reload-conf - signal Ocelot to reload its configuration'
echo ' ocelot-reload-db - signal Ocelot to reload from database'
echo ' test - run all linters and unit test suite'
echo ' twig-flush - purge the Twig cache'
echo ' update - pull from git and run production composer install'
.PHONY: build-css
build-css:
yarn build:scss
.PHONY: lint-css
lint-css:
yarn lint:css
yarn lint:css-checkstyle
.PHONY: mysqldump
mysqldump:
mysqldump -h 127.0.0.1 -P 36000 -u gazelle --password=password -d gazelle --skip-add-drop-table --skip-add-locks --single-transaction | sed 's/ AUTO_INCREMENT=[0-9]*//g' > db/data/gazelle.sql
.PHONY: ocelot-reload-conf
ocelot-reload-conf:
pkill -HUP ocelot
.PHONY: ocelot-reload-db
ocelot-reload-reload:
pkill -USR1 ocelot
.PHONY: test
test: lint-css
yarn lint:php:internal
yarn lint:php:phpcs || exit 0
composer phpstan
composer test
.PHONY: twig-flush
twig-flush:
find cache/twig -mindepth 1 -depth -delete
.PHONY: update
update:
git pull
composer install --no-dev --optimize-autoloader --no-suggest --no-progress