Updated pear/net_smtp from 1.8.0 to 1.8.1
[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 git:
21 depth: 3
22 quiet: true
23
24 # Cache NPM and Composer directories
25 # <https://docs.travis-ci.com/user/caching/>
26 cache:
27 npm: true
28 directories:
29 # Composer doesn't have a dedicated cache setting in Travis CI config, so set the directory path instead.
30 - vendor
31
32 matrix:
33 fast_finish: true
34 include:
35 # On Trusty, mysql user 'travis' doesn't have create database rights
36 # Postgres has no user called 'root'.
37 - env: dbtype=mysql dbuser=root
38 php: 7.3
39 - env: dbtype=mysql dbuser=root
40 php: 7.2
41 - env: dbtype=mysql dbuser=root
42 php: 7.1
43 - env: dbtype=postgres dbuser=travis
44 php: 7.1
45 - env: dbtype=mysql dbuser=root
46 php: 7
47 # https://docs.travis-ci.com/user/languages/php#HHVM-versions
48 - env: dbtype=mysql dbuser=root
49 php: hhvm-3.18
50 allow_failures:
51 - php: 7.3
52 - php: hhvm-3.18
53
54 services:
55 - mysql
56
57 branches:
58 # Test changes in master and arbitrary Travis CI branches only.
59 # The latter allows developers to enable Travis CI in their GitHub fork of
60 # wikimedia/mediawiki and then push changes for testing to branches like
61 # "travis-ci/test-this-awesome-change".
62 only:
63 - master
64 - /^travis-ci\/.*$/
65
66 addons:
67 apt:
68 packages:
69 - djvulibre-bin
70 - tidy
71
72 before_script:
73 - composer install --prefer-source --quiet --no-interaction
74 - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
75 - >
76 php maintenance/install.php traviswiki admin
77 --pass travis
78 --dbtype "$dbtype"
79 --dbname traviswiki
80 --dbuser "$dbuser"
81 --dbpass ""
82 --scriptpath "/w"
83 - echo -en "\n\nrequire_once __DIR__ . '/includes/DevelopmentSettings.php';\n" >> ./LocalSettings.php
84 - php -l ./LocalSettings.php
85
86 script:
87 - php tests/phpunit/phpunit.php
88
89 notifications:
90 email: false
91 irc:
92 channels:
93 - "chat.freenode.net#wikimedia-dev"
94 template:
95 - "%{repository}#%{build_number} (%{branch} - %{commit} %{author}): %{message} - %{build_url}"
96 on_success: change
97 on_failure: always