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
19 # TODO: Travis CI's hhvm does not support PostgreSQL at the moment.
29 # Test changes in master, in Wikimedia's production and in arbitrary
30 # Travis CI branches. The latter allows developers to enable Travis
31 # CI in their GitHub fork of wikimedia/mediawiki and then push
32 # changes they like to test to branches like
33 # "travis-ci/test-this-awesome-change" without having to mess up the
34 # master and wmf/* branches and their defined meaning.
41 - sudo apt-get install -qq djvulibre-bin tidy
42 - composer self-update --quiet --no-interaction
45 - composer install --prefer-source --quiet --no-interaction
46 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
48 php maintenance/install.php traviswiki admin
57 - php tests/phpunit/phpunit.php
63 - "chat.freenode.net#mediawiki-core"
64 - "chat.freenode.net#mediawiki-feed"