Introduce CategoryMembershipChange
[mediawiki.git] / .travis.yml
blob8ba46b5455b13d4b9fe1b65f71b9491aba017316
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 matrix:
12   fast_finish: true
13   include:
14     - env: dbtype=mysql
15       php: 5.3
16     - env: dbtype=postgres
17       php: 5.3
18     - env: dbtype=mysql
19       php: hhvm
20     - env: dbtype=mysql
21       php: 7
23 services:
24   - mysql
26 branches:
27   # Test changes in master, in Wikimedia's production and in arbitrary
28   # Travis CI branches.  The latter allows developers to enable Travis
29   # CI in their GitHub fork of wikimedia/mediawiki and then push
30   # changes they like to test to branches like
31   # "travis-ci/test-this-awesome-change" without having to mess up the
32   # master and wmf/* branches and their defined meaning.
33   only:
34     - master
35     - /^travis-ci\/.*$/
36     - /^wmf\/.*$/
38 before_install:
39   - sudo apt-get install -qq djvulibre-bin tidy
40   - composer self-update --quiet --no-interaction
42 before_script:
43   - composer install --prefer-source --quiet --no-interaction
44   - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
45   - >
46       php maintenance/install.php traviswiki admin
47       --pass travis
48       --dbtype "$dbtype"
49       --dbname traviswiki
50       --dbuser travis
51       --dbpass ""
52       --scriptpath "/w"
54 script:
55   - php tests/phpunit/phpunit.php
57 notifications:
58   email: false
59   irc:
60     channels:
61       - "chat.freenode.net#mediawiki-core"
62       - "chat.freenode.net#mediawiki-feed"
63     on_success: change
64     on_failure: change
65     skip_join: true