From 67b274069fa6ce16fdfabeb477cd30e77847313b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 4 Jul 2017 01:17:41 -0500 Subject: [PATCH] =?UTF-8?q?Try=20to=20output=20test=20error(s)=20from=20lo?= =?UTF-8?q?g=20=C2=AF\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 02ee1ed0..76837882 100644 --- a/Makefile +++ b/Makefile @@ -5,18 +5,21 @@ CURR_PATH=$(shell pwd) +.PHONY: all all: build - +.PHONY: build build: composer install --no-interaction php artisan optimize php artisan config:cache @make db +.PHONY: install install: db echo "" +.PHONY: clean clean: @php artisan cache:clear @php artisan optimize @@ -24,14 +27,17 @@ clean: @php artisan config:clear @rm -f database/*.sqlite +.PHONY: reset reset: clean @sqlite3 database/testing.sqlite "" @php artisan migrate:refresh --seed +.PHONY: db db: sqlite3 database/testing.sqlite "" php artisan migrate:refresh --seed +.PHONY: unittest-db unittest-db: -@rm -f database/unittest.sqlite sqlite3 database/unittest.sqlite "" @@ -39,13 +45,18 @@ unittest-db: tests: test +.PHONY: test test: + echo "" > storage/logs/laravel.log vendor/bin/phpunit --testdox tests + cat storage/logs/laravel.log +.PHONY: schema schema: #php artisan infyom:scaffold Aircraft --fieldsFile=database/schema/aircraft.json echo "" +.PHONY: docker docker: @mkdir -p $(CURR_PATH)/tmp/mysql @@ -57,10 +68,9 @@ docker: -p 8080:80 \ phpvms +.PHONY: docker-clean docker-clean: -docker stop phpvms -docker rm -rf phpvms -rm core/local.config.php -rm -rf tmp/mysql - -.PHONY: all build install db reset-db schema docker docker-clean