Skip to content

Commit 4e9f76d

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ before_script:
8181
# - ./dev/travis/skywire_before_script.sh
8282

8383
# Start docker
84+
- docker-compose build
8485
- docker-compose up -d
8586
# install Magento
86-
- mysql -u root --password=$MYSQL_PASS -e "CREATE DATABASE magento_integration_tests"
87+
- docker exec -it travisgento_mysql mysql -u root --password=$MYSQL_PASS -e "CREATE DATABASE magento_integration_tests"
8788
- 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
8889
script:
8990
# Start cypress tests

0 commit comments

Comments
 (0)