Skip to content

Commit 7923762

Browse files
committed
Run DB create in mysql container
1 parent ab0faec commit 7923762

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ before_script:
8282

8383
# Start docker
8484
- docker-compose up -d
85+
- sleep 10
86+
8587
# install Magento
86-
- mysql -u root --password=$MYSQL_PASS -e "CREATE DATABASE magento_integration_tests"
88+
- docker exec -it travisgento_mysql mysql -u root --password=$MYSQL_PASS -e "CREATE DATABASE magento_integration_tests"
8789
- php bin/magento setup:install --base-url=http://travisgento.com/ --db-host=travisgento_mysql --db-name=magento_integration_tests --db-user=root --db-password=$MYSQL_PASS --admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com --admin-user=admin --admin-password=admin123 --language=en_GB --currency=GBP --timezone=Europe/London --cleanup-database --sales-order-increment-prefix="ORD$" --session-save=db
8890
script:
8991
# Start cypress tests

0 commit comments

Comments
 (0)