Added PHP/OS info to benchmark output
[mediawiki.git] / .travis.yml
blob2d07596ee558de1dae7569de53ea11ce479ae6d9
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 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\/.*$/
35 before_install:
36   - sudo apt-get install -qq djvulibre-bin tidy
37   - composer self-update --quiet --no-interaction
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"
51 script:
52   - php tests/phpunit/phpunit.php
54 notifications:
55   email: false
56   irc:
57     channels:
58       - "chat.freenode.net#mediawiki-core"
59       - "chat.freenode.net#mediawiki-feed"
60     on_success: change
61     on_failure: change
62     skip_join: true