Merge "Revert "Temporary hax to hide cawiki's hacked in search sidebar""
[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 # Using HHVM-3.6+ requires Trusty (Travis default: precise)
11 # https://docs.travis-ci.com/user/languages/php#HHVM-versions
12 # https://github.com/travis-ci/travis-ci/issues/7368
13 sudo: required
14 group: edge
15 dist: trusty
16
17 matrix:
18 fast_finish: true
19 include:
20 - env: dbtype=mysql
21 php: 5.5
22 - env: dbtype=postgres
23 php: 5.5
24 - env: dbtype=mysql
25 php: hhvm-3.12
26 - env: dbtype=mysql
27 php: 7
28
29 services:
30 - mysql
31
32 branches:
33 # Test changes in master and arbitrary Travis CI branches only.
34 # The latter allows developers to enable Travis CI in their GitHub fork of
35 # wikimedia/mediawiki and then push changes they like to test to branches like
36 # "travis-ci/test-this-awesome-change".
37 only:
38 - master
39 - /^travis-ci\/.*$/
40
41 before_install:
42 - sudo apt-get install -qq djvulibre-bin tidy
43 - composer self-update --quiet --no-interaction
44
45 before_script:
46 - composer install --prefer-source --quiet --no-interaction
47 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
48 - >
49 php maintenance/install.php traviswiki admin
50 --pass travis
51 --dbtype "$dbtype"
52 --dbname traviswiki
53 --dbuser root
54 --dbpass ""
55 --scriptpath "/w"
56
57 script:
58 - php tests/phpunit/phpunit.php
59
60 notifications:
61 email: false
62 irc:
63 channels:
64 - "chat.freenode.net#mediawiki-feed"
65 on_success: change
66 on_failure: change
67 skip_join: true