Try to output test error(s) from log ¯\_(ツ)_/¯

This commit is contained in:
Nabeel Shahzad 2017-07-04 01:17:41 -05:00
parent 4608e02598
commit 67b274069f

View File

@ -5,18 +5,21 @@
CURR_PATH=$(shell pwd) CURR_PATH=$(shell pwd)
.PHONY: all
all: build all: build
.PHONY: build
build: build:
composer install --no-interaction composer install --no-interaction
php artisan optimize php artisan optimize
php artisan config:cache php artisan config:cache
@make db @make db
.PHONY: install
install: db install: db
echo "" echo ""
.PHONY: clean
clean: clean:
@php artisan cache:clear @php artisan cache:clear
@php artisan optimize @php artisan optimize
@ -24,14 +27,17 @@ clean:
@php artisan config:clear @php artisan config:clear
@rm -f database/*.sqlite @rm -f database/*.sqlite
.PHONY: reset
reset: clean reset: clean
@sqlite3 database/testing.sqlite "" @sqlite3 database/testing.sqlite ""
@php artisan migrate:refresh --seed @php artisan migrate:refresh --seed
.PHONY: db
db: db:
sqlite3 database/testing.sqlite "" sqlite3 database/testing.sqlite ""
php artisan migrate:refresh --seed php artisan migrate:refresh --seed
.PHONY: unittest-db
unittest-db: unittest-db:
-@rm -f database/unittest.sqlite -@rm -f database/unittest.sqlite
sqlite3 database/unittest.sqlite "" sqlite3 database/unittest.sqlite ""
@ -39,13 +45,18 @@ unittest-db:
tests: test tests: test
.PHONY: test
test: test:
echo "" > storage/logs/laravel.log
vendor/bin/phpunit --testdox tests vendor/bin/phpunit --testdox tests
cat storage/logs/laravel.log
.PHONY: schema
schema: schema:
#php artisan infyom:scaffold Aircraft --fieldsFile=database/schema/aircraft.json #php artisan infyom:scaffold Aircraft --fieldsFile=database/schema/aircraft.json
echo "" echo ""
.PHONY: docker
docker: docker:
@mkdir -p $(CURR_PATH)/tmp/mysql @mkdir -p $(CURR_PATH)/tmp/mysql
@ -57,10 +68,9 @@ docker:
-p 8080:80 \ -p 8080:80 \
phpvms phpvms
.PHONY: docker-clean
docker-clean: docker-clean:
-docker stop phpvms -docker stop phpvms
-docker rm -rf phpvms -docker rm -rf phpvms
-rm core/local.config.php -rm core/local.config.php
-rm -rf tmp/mysql -rm -rf tmp/mysql
.PHONY: all build install db reset-db schema docker docker-clean