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