From 929018a1a7c23971d3033a6a66503b6db1d0ad6f Mon Sep 17 00:00:00 2001 From: Tom Yearke Date: Fri, 20 Jan 2017 14:15:47 -0500 Subject: [PATCH] Travis: Manually update Composer when automatic update fails --- .travis.install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.install.sh b/.travis.install.sh index b4098c36c9..a0b203135a 100755 --- a/.travis.install.sh +++ b/.travis.install.sh @@ -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.