Added commands to initially create all testing database for all database engines in travis

This commit is contained in:
Alejandro Celaya 2020-05-04 20:34:28 +02:00
parent 9f13063b1f
commit dfdae96da5

View File

@ -25,6 +25,10 @@ install:
before_script:
- docker-compose up -d shlink_db shlink_db_postgres shlink_db_maria shlink_db_ms
- docker-compose exec shlink_db mysql -u root -proot -e "CREATE DATABASE shlink_test"
- docker-compose exec -e PGPASSWORD=root shlink_db_postgres psql -U postgres -c 'create database shlink_test;'
- docker-compose exec shlink_db_maria mysql -u root -proot -e "CREATE DATABASE shlink_test"
- docker-compose exec shlink_db_ms /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Passw0rd!' -Q "CREATE DATABASE shlink_test;"
- mkdir build
- export DOCKERFILE_CHANGED=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/master} --name-only | grep Dockerfile)