Skip to content

Commit 6c96489

Browse files
committed
Create database in travis.yml
1 parent 0d92fec commit 6c96489

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ before_install:
5252
# add packagist repo for any module dependencies
5353
- composer config --global --auth http-basic.repo.packagist.com tech@skywire.co.uk ${PACKAGIST_KEY}
5454
- composer config repositories.repo.packagist.com composer https://repo.packagist.com/skywire/
55-
# Run before install
56-
- chmod +x ./dev/travis/skywire_before_install.sh
57-
- ./dev/travis/skywire_before_install.sh
55+
# # Run before install
56+
# - chmod +x ./dev/travis/skywire_before_install.sh
57+
# - ./dev/travis/skywire_before_install.sh
5858
install:
5959
# Setup Magento and module
6060
- echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json
@@ -82,7 +82,8 @@ before_script:
8282
# Start docker
8383
- docker-compose up -d
8484
# install Magento
85-
- php bin/magento setup:install --base-url=http://travisgento.com/ --db-host=travisgento_mysql --db-name=magento_integration_tests --db-user=root --db-password="" --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
85+
- mysql -h travisgento_mysql -u root -p$MYSQL_PASS -e "CREATE DATABASE magento_integration_tests"
86+
- 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
8687
script:
8788
# Start cypress tests
8889
- php bin/magento config:set skywire_wordpress_api/api/base_url http://127.0.0.1:3000

0 commit comments

Comments
 (0)