From f322248fca74f448ae55ee6ba9744e1f81eea18a Mon Sep 17 00:00:00 2001 From: Tom Yearke Date: Fri, 20 Jan 2017 15:28:53 -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 d22cde5..8d85068 100755 --- a/.travis.install.sh +++ b/.travis.install.sh @@ -12,6 +12,16 @@ if "$using_php_533"; then 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 + # Install PEAR dependencies for newer version of PHP. install_pear_dependencies fi