OOUI theme support
[mediawiki.git] / .travis.yml
blob512d735fc4713e597b6a12bbd7993c87fd6e8854
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-nightly
13   - 5.3
15 env:
16   - dbtype=mysql
17   - dbtype=postgres
19 # TODO: Travis CI's hhvm does not support PostgreSQL at the moment.
20 matrix:
21   exclude:
22     - php: hhvm-nightly
23       env: dbtype=postgres
25 services:
26   - mysql
28 branches:
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.
35   only:
36     - master
37     - /^travis-ci\/.*$/
38     - /^wmf\/.*$/
40 before_install:
41   - sudo apt-get install -qq djvulibre-bin tidy
42   - composer self-update --quiet --no-interaction
44 before_script:
45   - composer install --prefer-source --quiet --no-interaction
46   - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
47   - >
48       php maintenance/install.php traviswiki admin
49       --pass travis
50       --dbtype "$dbtype"
51       --dbname traviswiki
52       --dbuser travis
53       --dbpass ""
54       --scriptpath "/w"
56 script:
57   - php tests/phpunit/phpunit.php
59 notifications:
60   email: false
61   irc:
62     channels:
63       - "chat.freenode.net#mediawiki-core"
64       - "chat.freenode.net#mediawiki-feed"
65     on_success: change
66     on_failure: change
67     skip_join: true