forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue causing static test failure to report success/green on Tr…
…avis Regression was introduced in e68d69c; can't use a script that does not exit on command failure or exit code is always zero for anything but the last command the script ran. Additionally, moved the test script back into .travis.yml because test failure inside a .sh script will not include sufficient error output.
- Loading branch information
1 parent
2bc3bb0
commit 849717c
Showing
4 changed files
with
32 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,22 +75,26 @@ case $TEST_SUITE in | |
cat "$changed_files_ce" | sed 's/^/ + including /' | ||
|
||
cd ../../.. | ||
|
||
cp package.json.sample package.json | ||
cp Gruntfile.js.sample Gruntfile.js | ||
yarn | ||
;; | ||
js) | ||
cp package.json.sample package.json | ||
cp Gruntfile.js.sample Gruntfile.js | ||
yarn | ||
|
||
echo "Installing Magento" | ||
mysql -uroot -e 'CREATE DATABASE magento2;' | ||
php bin/magento setup:install -q --admin-user="admin" --admin-password="123123q" --admin-email="[email protected]" --admin-firstname="John" --admin-lastname="Doe" | ||
|
||
echo "Deploying Static Content" | ||
php bin/magento setup:static-content:deploy -f -q -j=2 --no-css --no-less --no-images --no-fonts --no-misc --no-html-minify | ||
if [[ $GRUNT_COMMAND != "static" ]]; then | ||
echo "Installing Magento" | ||
mysql -uroot -e 'CREATE DATABASE magento2;' | ||
php bin/magento setup:install -q \ | ||
--admin-user="admin" \ | ||
--admin-password="123123q" \ | ||
--admin-email="[email protected]" \ | ||
--admin-firstname="John" \ | ||
--admin-lastname="Doe" | ||
|
||
echo "Deploying Static Content" | ||
php bin/magento setup:static-content:deploy -f -q -j=2 \ | ||
--no-css --no-less --no-images --no-fonts --no-misc --no-html-minify | ||
fi | ||
;; | ||
functional) | ||
echo "Installing Magento" | ||
|
@@ -117,7 +121,9 @@ case $TEST_SUITE in | |
|
||
composer install && composer require se/selenium-server-standalone:2.53.1 | ||
export DISPLAY=:1.0 | ||
sh ./vendor/se/selenium-server-standalone/bin/selenium-server-standalone -port 4444 -host 127.0.0.1 -Dwebdriver.firefox.bin=$(which firefox) -trustAllSSLCertificate &> ~/selenium.log & | ||
sh ./vendor/se/selenium-server-standalone/bin/selenium-server-standalone -port 4444 -host 127.0.0.1 \ | ||
-Dwebdriver.firefox.bin=$(which firefox) -trustAllSSLCertificate &> ~/selenium.log & | ||
|
||
cp ./phpunit.xml.dist ./phpunit.xml | ||
sed -e "s?127.0.0.1?${MAGENTO_HOST_NAME}?g" --in-place ./phpunit.xml | ||
sed -e "s?basic?travis_acceptance_${ACCEPTANCE_INDEX}?g" --in-place ./phpunit.xml | ||
|
This file was deleted.
Oops, something went wrong.