Use findItemFromData instead getItemFromData
[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.18
32 - env: dbtype=mysql dbuser=root
33 php: 7
34 - env: dbtype=mysql dbuser=root
35 php: 7.1
36 - env: dbtype=mysql dbuser=root
37 php: 7.2
38
39 services:
40 - mysql
41
42 branches:
43 # Test changes in master and arbitrary Travis CI branches only.
44 # The latter allows developers to enable Travis CI in their GitHub fork of
45 # wikimedia/mediawiki and then push changes for testing to branches like
46 # "travis-ci/test-this-awesome-change".
47 only:
48 - master
49 - /^travis-ci\/.*$/
50
51 addons:
52 apt:
53 packages:
54 - djvulibre-bin
55 - tidy
56
57 before_script:
58 - composer install --prefer-source --quiet --no-interaction
59 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
60 - >
61 php maintenance/install.php traviswiki admin
62 --pass travis
63 --dbtype "$dbtype"
64 --dbname traviswiki
65 --dbuser "$dbuser"
66 --dbpass ""
67 --scriptpath "/w"
68
69 script:
70 - php tests/phpunit/phpunit.php
71
72 notifications:
73 email: false
74 irc:
75 channels:
76 - "chat.freenode.net#mediawiki-feed"
77 on_success: change
78 on_failure: change
79 skip_join: true