Skip to content

Commit

Permalink
test(scripts): add a env var to create a default database at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Apr 22, 2021
1 parent a953301 commit 5f8f25f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ do
export DB_PORT="5432"
export DB_DRIVER="postgres"
docker rm -f postgres || true
docker run -p $DB_PORT:5432 --name postgres -e POSTGRES_PASSWORD=$DB_PASSWORD -d postgres:$PGVERSION
docker run -p $DB_PORT:5432 --name postgres -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_DB=$DB_NAME -d postgres:$PGVERSION
sleep 5
make test
echo "--------------END POSTGRES TESTS-------------"
Expand All @@ -48,7 +48,7 @@ do
export DB_PORT="3306"
export DB_DRIVER="mysql"
docker rm -f mysql || true
docker run -p $DB_PORT:3306 --name mysql -e MYSQL_PASSWORD=$DB_PASSWORD -d mysql:$MYSQL_VERSION
docker run -p $DB_PORT:3306 --name mysql -e MYSQL_PASSWORD=$DB_PASSWORD -e MYSQL_DATABASE=$DB_NAME -d mysql:$MYSQL_VERSION
sleep 5
make test
echo "--------------END MYSQL TESTS-------------"
Expand Down

0 comments on commit 5f8f25f

Please sign in to comment.