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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ if "$using_php_533"; then
echo "Using newer version of PHP for installing dependencies"
phpenv global 5.3
php --version

# Update Composer since the attempt made by the Travis setup script
# using PHP 5.3.3 would have failed.
#
# First, we update to the latest developer version since the version
# of Composer pre-installed on Travis systems (1.0.0) doesn't support
# selecting an update channel. Then, we use this version to rollback to
# the latest stable version.
composer self-update
composer self-update --stable
fi

# Install Composer dependencies.
Expand Down