blob: 26793151f9978fd59c7fa1b95ac0f077106e56f8 (
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
|
language: php
php:
- 5.5
- 5.6
- 7.0
env:
matrix:
- TEST_SUITE=unit
# All the currently-supported versions from https://www.mediawiki.org/wiki/Version_lifecycle
- TEST_SUITE=integration MEDIAWIKI_VERSION=1.26.4
- TEST_SUITE=integration MEDIAWIKI_VERSION=1.27.3
- TEST_SUITE=integration MEDIAWIKI_VERSION=1.28.2
- TEST_SUITE=integration MEDIAWIKI_VERSION=1.29.1
global:
- MEDIAWIKI_API_URL='http://127.0.0.1:8081/api.php'
matrix:
include:
- php: hhvm
env: TEST_SUITE=unit
before_install:
install:
- composer install
- php: 7.1
env: TEST_SUITE=unit
before_install:
install:
- composer install
before_install:
- bin/install-mediawiki.sh
install:
- php -S 127.0.0.1:8081 -t build/mediawiki >/dev/null 2>&1 &
- composer install
script:
- $TRAVIS_BUILD_DIR/vendor/bin/phpunit --coverage-clover=$TRAVIS_BUILD_DIR/coverage.clover $TRAVIS_BUILD_DIR/tests/$TEST_SUITE
- $TRAVIS_BUILD_DIR/vendor/bin/phpcs
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover $TRAVIS_BUILD_DIR/coverage.clover
notifications:
irc:
channels:
- "chat.freenode.net##add"
on_success: change
on_failure: always
|