Skip to content

Commit

Permalink
Merge pull request #824 from dbarzin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dbarzin authored Sep 14, 2024
2 parents d9bd413 + 5aeede7 commit d32e1b7
Show file tree
Hide file tree
Showing 2 changed files with 10,077 additions and 4 deletions.
18 changes: 14 additions & 4 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ cd /tmp/mercator
composer update

# Drop old test database

tput setaf 2; echo "Drop test database"; tput setaf 7
mysql -e "DROP DATABASE IF EXISTS mercator_test;"
mysql -e "DROP USER IF EXISTS 'mercator_test'@'localhost';"

# if it fails :
# sudo mysql
# CREATE USER 'yourname'@'localhost';
# GRANT ALL PRIVILEGES ON *.* TO 'yourname'@'localhost' WITH GRANT OPTION;

# Create database
tput setaf 2; echo "Create database"; tput setaf 7
mysql -e "
Expand Down Expand Up @@ -70,15 +76,19 @@ tput setaf 2; echo "Start server"; tput setaf 7
php artisan serve --no-reload > /dev/null &
sleep 3

# Install chrome driver
tput setaf 2; echo "Install Chrome Driver"; tput setaf 7
php artisan dusk:chrome-driver

# Start Chrome driver
tput setaf 2; echo "Start chrome"; tput setaf 7
./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &

# start dusk
tput setaf 2; echo "Dusk test"; tput setaf 7

php artisan dusk:chrome-driver
php artisan dusk --stop-on-error --stop-on-failure

# kill server
kill $(lsof -t -i:8000)

tput setaf 2; echo "Done."; tput setaf 7


Loading

0 comments on commit d32e1b7

Please sign in to comment.