-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (50 loc) · 1.37 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
# _ __
# ___ ____ ___ ___ _________ _(_) /____
# / _ \/ __ `__ \/ _ \/ ___/ __ `/ / / ___/
# / __/ / / / / / __/ / / /_/ / / (__ )
# \___/_/ /_/ /_/\___/_/ \__,_/_/_/____/
#
# (c) Claudio Procida 2008-2024
#
.PHONY: docs test install update
update:
composer update
yarn upgrade
install:
composer install
yarn install
create_test_db:
mysql -u root -p < schemas/emerails_test.sql
test: install
vendor/bin/phpunit --test-suffix=.test.php test/unit --color auto --coverage-html coverage
test-ci: install
vendor/bin/phpunit --test-suffix=.test.php test/unit --color auto --coverage-clover build/logs/clover.xml
docs:
doxygen Doxyfile
format:
yarn format
format-strings:
scripts/emerails_localize format --recursive
# Localization goals
check-strings:
scripts/emerails_localize check --recursive --strict
# Docker goals
docker-build: install
docker build -t emerails-app .
docker-run:
docker run --name emerails-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.5
docker run --name emerails --link emerails-mysql:mysql -p 8080:80 -d emerails-app
docker-stop:
docker stop emerails
docker stop emerails-mysql
docker rm emerails
docker rm emerails-mysql
docker-clean:
docker rmi emerails-app
# docker-publish:
# docker build -t emeraldion/emerails:1.1 .
# docker push emeraldion/emerails:1.1
# Security goals
audit:
composer audit
yarn audit