Made wfThumbIsStandard() aware of the width/height handler scaling choice
[mediawiki.git] / .travis.yml
blobe0a45a1ec1d376a5de58692c2415164680de01c0
1 # Travis CI build configuration for MediaWiki
2 # <https://travis-ci.org/wikimedia/mediawiki-core>
4 # The Wikimedia Foundation uses a self-hosted Jenkins instance to run unit
5 # tests, but it tests code against the version of PHP that is deployed on
6 # Wikimedia's production cluster. This Travis CI configuration is designed to
7 # complement that setup by testing MediaWiki on travis
9 language: php
11 php:
12   - hhvm
13   - 5.3
14   - 5.4
15   - 5.5
16   - 5.6
18 matrix:
19   allow_failures:
20     - php: 5.3
21     - php: 5.4
22     - php: 5.5
23     - php: 5.6
25 services:
26   - mysql
28 branches:
29   # Test changes in master and in Wikimedia's production branches.
30   only:
31     - master
32     - /^wmf\/.*$/
34 before_install:
35   - sudo apt-get install -qq djvulibre-bin tidy
37 before_script:
38   # Initialise submodules, in case we're testing a Wikimedia production branch.
39   - git submodule update --init --recursive
40   # Travis CI's HHVM environment provides PHPUnit as a phar file, but
41   # MediaWiki's test suite only works if individual PHPUnit files are
42   # actual files on disk (bug 58881).
43   - composer require 'phpunit/phpunit=3.7.*' --prefer-source
44   - >
45       php maintenance/install.php testwiki admin
46       --pass travis
47       --dbname traviswiki
48       --dbuser travis
49       --dbpass ""
50       --scriptpath "/w"
52 script:
53   - >
54       if [ "$TRAVIS_PHP_VERSION" = "hhvm" ];
55       then
56         hhvm --php \
57         -d include_path=".$(printf ':%s' vendor/phpunit/*)" \
58         -d date.timezone="Etc/UTC" \
59         tests/phpunit/phpunit.php
60       else
61         php tests/phpunit/phpunit.php \
62         --with-phpunitdir ./vendor/phpunit/phpunit
63       fi