-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
40 lines (34 loc) · 1.07 KB
/
.travis.yml
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
language: php
services:
- mysql
matrix:
fast_finish: true
include:
- env: DB=mysql; MW=master; PHPUNIT=6.5.*; SMW=~3.0@dev
php: 7.2
- env: DB=sqlite; MW=REL1_31; SMW=~3.0@dev
php: 7.2
- env: DB=mysql; MW=REL1_32; SMW=~3.1@dev
php: 7.2
- env: DB=postgres; MW=REL1_31; SMW=~3.0.0
php: 7.2
- env: DB=postgres; MW=REL1_33; SMW=~3.1@dev; TYPE=coverage
php: 7.3
allow_failures:
# Broken due to https://phabricator.wikimedia.org/T188840
- env: DB=mysql; MW=master; PHPUNIT=6.5.*; SMW=~3.0@dev
install:
- bash ./tests/travis/install-mediawiki.sh
- bash ./tests/travis/install-semantic-tasks.sh
- npm ci
script:
- bash ./tests/travis/run-tests.sh
- npm run test
after_success:
- if [[ "$TYPE" != "coverage" ]]; then exit 0; fi
- ../mw/tests/phpunit/phpunit.php -c ../mw/extensions/SemanticTasks/phpunit.xml.dist --coverage-clover coverage.clover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
cache:
directories:
- $HOME/.composer/cache