Commit 256d12c1 authored by Egor Kremnev's avatar Egor Kremnev

fix build.sh script

parent 6c8cb3c2
...@@ -14,6 +14,9 @@ echo -e "\e[32m [Success] \e[32m $1 \e[39m" ...@@ -14,6 +14,9 @@ echo -e "\e[32m [Success] \e[32m $1 \e[39m"
info "build started under user $(whoami)" info "build started under user $(whoami)"
echo "Make database for testing ${pwd}"
touch database/database.unit.sqlite
touch database/database.dusk.sqlite
info "Install environment for unit tests" info "Install environment for unit tests"
cp .env.unit .env cp .env.unit .env
...@@ -34,10 +37,6 @@ php artisan test ...@@ -34,10 +37,6 @@ php artisan test
info "Setup environment for dusk test" info "Setup environment for dusk test"
cp .env.dusk .env cp .env.dusk .env
echo "Make database for testing ${pwd}"
php artisan key:generate php artisan key:generate
php artisan dusk:chrome-driver php artisan dusk:chrome-driver
nohup bash -c "php artisan serve --env=dusk --port=4343 2>&1 &" && sleep 5 nohup bash -c "php artisan serve --env=dusk --port=4343 2>&1 &" && sleep 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment