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 against HHVM.
18 # Test changes in master and in Wikimedia's production branches.
24 - sudo apt-get install -qq djvulibre-bin tidy
27 # Initialise submodules, in case we're testing a Wikimedia production branch.
28 - git submodule update --init --recursive
29 # Travis CI's HHVM environment provides PHPUnit as a phar file, but
30 # MediaWiki's test suite only works if individual PHPUnit files are
31 # actual files on disk (bug 58881).
32 - composer require 'phpunit/phpunit=3.7.*'
34 php maintenance/install.php testwiki admin
44 -d include_path=".$(printf ':%s' vendor/phpunit/*)"
45 -d date.timezone="Etc/UTC"
46 tests/phpunit/phpunit.php