-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (28 loc) · 974 Bytes
/
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
.PHONY: all
php = $(shell which php)
composer = $(shell which composer)
install: init
init: composer-install copy-env-files db-migrate
cd backend && php artisan key:generate
@echo
@echo "$(shell echo "\033[0;49;32m---\033[m")" Completed
@echo
copy-env-files:
@echo "$(shell echo "\033[0;49;32m---\033[m")" Copy backend .env configurations
cp backend/.env.example backend/.env
@echo
@echo "$(shell echo "\033[0;49;32m---\033[m")" Copy backend phpunit.xml.dist to phpunit.xml
cp backend/phpunit.xml.dist backend/phpunit.xml
@echo
db-migrate:
@echo "$(shell echo "\033[0;49;32m---\033[m")" Migrations
cd backend && php artisan migrate:fresh --seed
test: unit feature
unit:
@echo "$(shell echo "\033[0;49;32m---\033[m")" Unit Test
cd backend && vendor/bin/phpunit --testsuite=Unit
feature:
@echo "$(shell echo "\033[0;49;32m---\033[m")" Feature Test
cd backend && vendor/bin/phpunit --testsuite=Feature
composer-install:
cd backend && composer install