summaryrefslogtreecommitdiff
path: root/bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml')
-rw-r--r--bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml b/bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml
new file mode 100644
index 00000000..cb3e7641
--- /dev/null
+++ b/bin/wiki/vendor/addwiki/mediawiki-api-base/.travis.yml
@@ -0,0 +1,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