Merge "RCFilters: Add 'advanced filters' label to the view selection"
[lhc/web/wiklou.git] / .travis.yml
1 # Travis CI build configuration for MediaWiki
2 # <https://travis-ci.org/wikimedia/mediawiki-core>
3 #
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
8 #
9 language: php
10
11
12 # Use fast containers instead of the slower sudo-enabled VMs:
13 sudo: false
14 # Use Ubuntu 14 Trusty (not Ubuntu 12 Precise)
15 # <https://docs.travis-ci.com/user/reference/trusty/>
16 # - Required in order to use HHVM 3.6 or higher.
17 # - Required for non-buggy xml library for XmlTypeCheck/UploadBaseTest (T75176).
18 dist: trusty
19
20 matrix:
21 fast_finish: true
22 include:
23 # On Trusty, mysql user 'travis' doesn't have create database rights
24 # Postgres has no user called 'root'.
25 - env: dbtype=mysql dbuser=root
26 php: 5.5
27 - env: dbtype=postgres dbuser=travis
28 php: 5.5
29 # https://docs.travis-ci.com/user/languages/php#HHVM-versions
30 - env: dbtype=mysql dbuser=root
31 php: hhvm-3.12
32 - env: dbtype=mysql dbuser=root
33 php: hhvm-3.18
34 - env: dbtype=mysql dbuser=root
35 php: 7
36
37 services:
38 - mysql
39
40 branches:
41 # Test changes in master and arbitrary Travis CI branches only.
42 # The latter allows developers to enable Travis CI in their GitHub fork of
43 # wikimedia/mediawiki and then push changes for testing to branches like
44 # "travis-ci/test-this-awesome-change".
45 only:
46 - master
47 - /^travis-ci\/.*$/
48
49 addons:
50 apt:
51 packages:
52 - djvulibre-bin
53 - tidy
54
55 before_script:
56 - composer install --prefer-source --quiet --no-interaction
57 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
58 - >
59 php maintenance/install.php traviswiki admin
60 --pass travis
61 --dbtype "$dbtype"
62 --dbname traviswiki
63 --dbuser "$dbuser"
64 --dbpass ""
65 --scriptpath "/w"
66
67 script:
68 - php tests/phpunit/phpunit.php
69
70 notifications:
71 email: false
72 irc:
73 channels:
74 - "chat.freenode.net#mediawiki-feed"
75 on_success: change
76 on_failure: change
77 skip_join: true