Skip to content

Commit

Permalink
Run tests without magento installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Oct 25, 2018
1 parent 4fdc638 commit 4349d02
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions dev/travis/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,27 @@ case $TEST_SUITE in
api-functional)
echo "Installing Magento"
mysql -uroot -e 'CREATE DATABASE magento2;'
php bin/magento setup:install -q \
--language="en_US" \
--timezone="UTC" \
--currency="USD" \
--base-url="http://${MAGENTO_HOST_NAME}/" \
--admin-firstname="John" \
--admin-lastname="Doe" \
--backend-frontname="backend" \
--admin-email="admin@example.com" \
--admin-user="admin" \
--use-rewrites=1 \
--admin-use-security-key=0 \
--admin-password="123123q"

echo "Enabling production mode"
php bin/magento deploy:mode:set production
# php bin/magento setup:install -q \
# --language="en_US" \
# --timezone="UTC" \
# --currency="USD" \
# --base-url="http://${MAGENTO_HOST_NAME}/" \
# --admin-firstname="John" \
# --admin-lastname="Doe" \
# --backend-frontname="backend" \
# --admin-email="admin@example.com" \
# --admin-user="admin" \
# --use-rewrites=1 \
# --admin-use-security-key=0 \
# --admin-password="123123q"

# echo "Enabling production mode"
# php bin/magento deploy:mode:set production

echo "Prepare api-functional tests for running"
cd dev/tests/api-functional
cp config/install-config-mysql.php.dist config/install-config-mysql.php
sed -e "s?http://localhost/?http://${MAGENTO_HOST_NAME}/?g" --in-place ./config/install-config-mysql.php

cp ./phpunit_graphql.xml.dist ./phpunit.xml
sed -e "s?magento.url?${MAGENTO_HOST_NAME}?g" --in-place ./phpunit.xml
Expand Down

0 comments on commit 4349d02

Please sign in to comment.