summaryrefslogtreecommitdiff
path: root/bin/reevotech/vendor/addwiki/mediawiki-api-base/.travis.yml
blob: cb3e76417ce06e3c265f5f9a1247ddfa1091ba11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php

php:
  - hhvm
  - 5.5
  - 5.6
  - 7.0
  - 7.1

env:
  - MW=master

matrix:
  include:
  - php: 7.1
    env: MW=REL1_28
  - php: 7.1
    env: MW=REL1_27
  - php: 7.1
    env: MW=REL1_26
  - php: 7.1
    env: MW=REL1_25
  - php: 7.1
    env: MW=REL1_24
  allow_failures:
  - env: MW=REL1_24

addons:
  mariadb: '10.0'

before_install:
  - bash ./build/travis/install-mediawiki.sh

install:
  - travis_retry composer install

before_script:
  - bash ./build/travis/run-webserver.sh
  - export ADDWIKI_MW_API='http://localhost:8080/w/api.php'
  - export ADDWIKI_MW_USER='CIUser'
  - export ADDWIKI_MW_PASSWORD='CIPass'

script:
  - composer lint
  - composer phpcs
  - composer phpunit-coverage

after_success:
  - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

cache:
  directories:
    - $HOME/.composer/cache

notifications:
  irc:
    channels:
      - "chat.freenode.net##add"
    on_success: change
    on_failure: always