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
16 - env: dbtype=postgres
27 # Test changes in master and arbitrary Travis CI branches only.
28 # The latter allows developers to enable Travis CI in their GitHub fork of
29 # wikimedia/mediawiki and then push changes they like to test to branches like
30 # "travis-ci/test-this-awesome-change".
36 - sudo apt-get install -qq djvulibre-bin tidy
37 - composer self-update --quiet --no-interaction
40 - composer install --prefer-source --quiet --no-interaction
41 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
43 php maintenance/install.php traviswiki admin
52 - php tests/phpunit/phpunit.php
58 - "chat.freenode.net#mediawiki-feed"