Skip to content

Commit 5168cb6

Browse files
committed
build: Change Travis image from precise to trusty (Fix HHVM build)
Follows-up 67737a2. Per <https://docs.travis-ci.com/user/languages/php#HHVM-versions-on-Trusty> using hhvm-3.12 requires a trusty image. The upstream source at <http://dl.hhvm.com/ubuntu/dists/> 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. <https://docs.travis-ci.com/user/database-setup/#MySQL> Without this, install.php fails. More details at <travis-ci/travis-ci#7368>. This config was tested and passed at <https://travis-ci.org/Krinkle/mediawiki/jobs/204463664>. Bug: T75175 Change-Id: Ic59936734211b68d9701119a551d3bd1b83c845e
1 parent d25ff58 commit 5168cb6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
# complement that setup by testing MediaWiki on travis
88
#
99
language: php
10+
# Using HHVM-3.6+ requires Trusty (Travis default: precise)
11+
# https://docs.travis-ci.com/user/languages/php#HHVM-versions
12+
# https://github.com/travis-ci/travis-ci/issues/7368
13+
sudo: required
14+
group: edge
15+
dist: trusty
1016

1117
matrix:
1218
fast_finish: true
@@ -44,7 +50,7 @@ before_script:
4450
--pass travis
4551
--dbtype "$dbtype"
4652
--dbname traviswiki
47-
--dbuser travis
53+
--dbuser root
4854
--dbpass ""
4955
--scriptpath "/w"
5056

0 commit comments

Comments
 (0)