-
Notifications
You must be signed in to change notification settings - Fork 20
MAGECLOUD-3967: Add static and unit tests to magento-cloud-components #11
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
Conversation
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then composer config http-basic.repo.magento.com ${REPO_USERNAME} ${REPO_PASSWORD}; fi; | ||
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then composer config github-oauth.github.com ${GITHUB_TOKEN}; fi; | ||
- composer config repositories.magento composer https://repo.magento.com/ | ||
- composer require "magento/framework:*" --no-update |
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.
This will fail without keys, don't you want to add if statement?
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.
It's ok if it will fail, without "magento/framework:*" package test scripts won't run anyway.
"@phpunit" | ||
], | ||
"phpstan": "phpstan analyse -c Test/static/phpstan.neon", | ||
"phpcs": "phpcs ./ --standard=Test/static/phpcs-ruleset.xml -p -n", |
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.
Let's add Sniffs from ECE-Tools
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.
added
.travis.yml
Outdated
|
||
env: | ||
matrix: | ||
- TEST_SUITE=static-unit XDEBUG=true |
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.
Yo don't need matrix, having only 1 variation
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.
updated
@@ -21,8 +21,7 @@ class UrlFixer | |||
*/ | |||
public function run(Store $store, $url): string | |||
{ | |||
if ( | |||
($store->getForceDisableRewrites() || !$store->getConfig(Store::XML_PATH_USE_REWRITES)) | |||
if (($store->getForceDisableRewrites() || !$store->getConfig(Store::XML_PATH_USE_REWRITES)) | |||
&& strpos($url, '/magento/') !== false |
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.
I would also create task to core to fix this issue
- composer update -n --no-suggest | ||
|
||
script: | ||
- if [ "$TEST_SUITE" == "static-unit" ]; then ./Test/static/static-travis.sh; fi |
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.
This must be in tests
directory
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.
Why must
? it will be strange to have Test
and tests
directories on one level.
Merge develop into 1.0
https://magento2.atlassian.net/browse/MAGECLOUD-3967