Skip to content

Travis CI breaks on out of the box composer build #12334

@barbazul

Description

@barbazul

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

  1. Create project: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2
  2. Create a Github repository (SemExpert/magento2-composer-built in my example) and setup Travis CI
  3. Initialize git: cd magento2 && git init && git remote add origin https://github.com/SemExpert/magento2-composer-built.git
  4. Give execution permission to Travis files: chmod +x dev/travis/*.sh
  5. Edit .travis.yml, add auth.json setup according to https://gordonlesti.com/magento2-extension-development-with-travis-ci/
  6. Edit .travis.yml, remove PHP 7.0 from matrix and add execution permission to dev/travis/before_script.sh in before_script section
  7. cd magento2 && composer install
  8. cd magento2 && git add . && git commit -m "commit" && git push

Expected result

  1. Build should be green

Actual result

  1. https://travis-ci.org/SemExpert/magento2-composer-built

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions