aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: e35817bda59431229c906691545e25bbf8c00fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: coverage

OLD=7.2.19
MEDIUM=7.3.6
LAST=7.3.6

C=--coverage-html coverage


all: prepare
	./vendor/bin/phpunit $(C)
coverage:
	php -S localhost:8000 -t $@
css:
	npx tailwind build core/Assets/css/app.css -o web/css/app.css

prepare: vendor
	mysql -uroot -proot -e 'DROP DATABASE IF EXISTS imperium;'
	mysql -uroot -proot -e 'CREATE DATABASE imperium;'
	vendor/bin/phinx migrate
	vendor/bin/phinx seed:run
	php shaolin up
vendor:
	composer install