-
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
Travis CI breaks on out of the box composer build #12334
Comments
Please provide a place in official documentation suggesting Travis usage like described. |
@orlangur There is no mention on how to use Travis in the documentation. I am trying to self-discover this process in the hopes of actually writing such missing documentation. My current attempt is trying to use the travis file as it is provided by Magento, ideally, without modifications. The few modifications made were to circumvent the initialization errors as they showed up, up to the point where tests were actually run.
Even if this attempt is completely invalidated and Magento does no expect developers to use the provided At this moment, the whole test suite is of little use to agencies trying to build a CI process (using Travis or any other tool) as it fails out of the box. Summary of the errors, for your convenience: Unit tests 1 error 6 failures
Static tests 2 files with 39 errors
JS Spec All green =) JS Static Extreme number of errors. No summary is provided ** Integration tests** 5 failures
Funcional tests Timeout |
You cannot expect green builds using Travis configuration the way it is not used (= enforced) in core. First unit test failure was fixed recently in #12144.
Not even a part of this repository.
Only in case of Composer-based installation which is not a part of CICD loop currently. Feel free to report concrete issues similar to #11230 and/or contribute corresponding fixes as pull requests. |
When building a project from the composer create-project command as suggested in the documentation, the resulting build will not be green in Travis CI. I know there is some handling necessary (like some execution permissions and building your auth.json) but when all is set, still all kinds of tests fail
Preconditions
Magento 2.2 installed from composer repository
PHP 7.1
Steps to reproduce
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2
cd magento2 && git init && git remote add origin https://github.com/SemExpert/magento2-composer-built.git
chmod +x dev/travis/*.sh
.travis.yml
, addauth.json
setup according to https://gordonlesti.com/magento2-extension-development-with-travis-ci/.travis.yml
, remove PHP 7.0 from matrix and add execution permission todev/travis/before_script.sh
in before_script sectioncd magento2 && composer install
cd magento2 && git add . && git commit -m "commit" && git push
Expected result
Actual result
The text was updated successfully, but these errors were encountered: