-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added JS Jasmine tests to Travis CI #9013
Changes from 17 commits
384cebf
9a23a98
0202a1a
7d7b388
9b779a7
9db30d4
14e6118
b9011db
a0dd091
c28c7b4
39e06a3
3434cb2
378a691
dcdbe51
d21220a
f078aff
d48e23f
a47530b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,4 +76,25 @@ case $TEST_SUITE in | |
|
||
cd ../../.. | ||
;; | ||
js) | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | ||
bash -c "nvm install $NODE_JS_VERSION" || true | ||
bash -c "nvm use $NODE_JS_VERSION" || true | ||
node --version | ||
|
||
cp package.json.sample package.json | ||
cp Gruntfile.js.sample Gruntfile.js | ||
npm install -g yarn | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it really viable to install There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not only There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for clarification. |
||
yarn global add grunt-cli | ||
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 | ||
;; | ||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at https://travis-ci.org/magento/magento2/jobs/215020317 - is there some less verbose mode? Display only failed tests maybe...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, for now I just focuses on make this test running, then we can think about some adjustments / improvements.
PS. I really hate Grunt, so if I don't have to modify this, I will be more than happy to leave it as it is 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I didn't use it as well, and didn't google for a solution just in case you know the answer.
It can wait until it become a problem "output is too big" some day (hopefully never).