From: Timo Tijhof Date: Thu, 23 Feb 2017 04:31:56 +0000 (-0800) Subject: build: Change Travis image from precise to trusty (Fix HHVM build) X-Git-Tag: 1.31.0-rc.0~4010 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=5168cb60f8ff3fecd5baee066a7cf2b96e126f99;p=lhc%2Fweb%2Fwiklou.git build: Change Travis image from precise to trusty (Fix HHVM build) Follows-up 67737a267f. Per using hhvm-3.12 requires a trusty image. The upstream source at doesn't provide it for precise. In addition to changing to trusty, we also need to: * Set 'sudo: required' and 'group: edge'. Because lightweight "sudo: false" containers are still precise-only. There is a beta test and I tried it, but it doesn't support out apt-get install commands yet. * Change mysql user from 'travis' to 'root'. The fact that 'travis' supports creating databases on precise is undocumented. One is supposed to use 'root' for this, which is required on Trusty. Without this, install.php fails. More details at . This config was tested and passed at . Bug: T75175 Change-Id: Ic59936734211b68d9701119a551d3bd1b83c845e --- diff --git a/.travis.yml b/.travis.yml index 80769dc376..ec7bac3733 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,12 @@ # complement that setup by testing MediaWiki on travis # language: php +# Using HHVM-3.6+ requires Trusty (Travis default: precise) +# https://docs.travis-ci.com/user/languages/php#HHVM-versions +# https://github.com/travis-ci/travis-ci/issues/7368 +sudo: required +group: edge +dist: trusty matrix: fast_finish: true @@ -44,7 +50,7 @@ before_script: --pass travis --dbtype "$dbtype" --dbname traviswiki - --dbuser travis + --dbuser root --dbpass "" --scriptpath "/w"