Skip to content
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: Manually update Composer when automatic update fails #35

Merged
merged 1 commit into from
Jan 20, 2017

Conversation

tyearke
Copy link
Contributor

@tyearke tyearke commented Jan 20, 2017

Description

This pull request fixes a case where Travis CI was not updating Composer to the latest stable version, causing builds with newer Composer config files to fail.

Motivation and Context

When Travis attempts to automatically update Composer to the latest version while using PHP 5.3.3, it fails because of SSL issues with Travis systems using PHP 5.3.3. This meant that tests were done using the pre-installed version of Composer, 1.0.0. This now presents a problem, as newer versions of Composer have introduced backwards-incompatible changes to the lock file format.

Tests performed

I ran the updated Travis scripts with pushes on my fork. The results may be found here.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tyearke tyearke added the qa label Jan 20, 2017
@tyearke tyearke added this to the v6.5.1 milestone Jan 20, 2017
@tyearke tyearke merged commit 415662d into ubccr:xdmod6.5 Jan 20, 2017
@tyearke tyearke mentioned this pull request Jan 20, 2017
tyearke added a commit that referenced this pull request Jan 20, 2017
@tyearke tyearke deleted the meta/travis_composer_self_update branch January 23, 2017 18:49
@jpwhite4
Copy link
Member

Please do not forget to check whether changes to the travis code are also needed in the XDMoD sub modules. The code is very similar, which makes it likely that an error in one also affects the other.

@jpwhite4
Copy link
Member

Also don't forget that the lock files needed to updated too when you update composer. and this needs to happen in all of the sub-modules that also need the self-update commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants