Skip to content

Commit ede9a62

Browse files
committed
Make travis test php 5.3, 5.4 and 5.5
Currently these are all set to be allowed to fail as currently some tests do fail but having this run will allow us to slowly fix them and remove the versions from allow_failures The jobs for 5.3 5.4 and 5.5 seem to take somewhere between 6 and 9 mins compared to hhvm which takes about 4 but this should be no problem Change-Id: Ifee7f6476cfd41736aa595e92260a333b4c059ee
1 parent b1f04d3 commit ede9a62

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.travis.yml

+21-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44
# The Wikimedia Foundation uses a self-hosted Jenkins instance to run unit
55
# tests, but it tests code against the version of PHP that is deployed on
66
# Wikimedia's production cluster. This Travis CI configuration is designed to
7-
# complement that setup by testing MediaWiki against HHVM.
7+
# complement that setup by testing MediaWiki on travis
88
#
99
language: php
1010

1111
php:
1212
- hhvm
13+
- 5.3
14+
- 5.4
15+
- 5.5
16+
17+
matrix:
18+
allow_failures:
19+
- php: 5.3
20+
- php: 5.4
21+
- php: 5.5
1322

1423
services:
1524
- mysql
@@ -29,7 +38,7 @@ before_script:
2938
# Travis CI's HHVM environment provides PHPUnit as a phar file, but
3039
# MediaWiki's test suite only works if individual PHPUnit files are
3140
# actual files on disk (bug 58881).
32-
- composer require 'phpunit/phpunit=3.7.*' --prefer-source
41+
- composer require 'phpunit/phpunit=3.7.*' --prefer-source
3342
- >
3443
php maintenance/install.php testwiki admin
3544
--pass travis
@@ -40,7 +49,13 @@ before_script:
4049
4150
script:
4251
- >
43-
hhvm --php
44-
-d include_path=".$(printf ':%s' vendor/phpunit/*)"
45-
-d date.timezone="Etc/UTC"
46-
tests/phpunit/phpunit.php
52+
if [ "$TRAVIS_PHP_VERSION" = "hhvm" ];
53+
then
54+
hhvm --php \
55+
-d include_path=".$(printf ':%s' vendor/phpunit/*)" \
56+
-d date.timezone="Etc/UTC" \
57+
tests/phpunit/phpunit.php
58+
else
59+
php tests/phpunit/phpunit.php \
60+
--with-phpunitdir ./vendor/phpunit/phpunit
61+
fi

0 commit comments

Comments
 (0)