34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
language: php
|
|
sudo: false
|
|
php:
|
|
- "nightly"
|
|
- "7.3"
|
|
- "7.2"
|
|
- "7.1"
|
|
- "7.0"
|
|
- "5.6"
|
|
env:
|
|
- DISABLE_FUNCTIONS=
|
|
- DISABLE_FUNCTIONS="gzopen"
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- php: "nightly"
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "chat.freenode.net#dokuwiki"
|
|
on_success: change
|
|
on_failure: change
|
|
install:
|
|
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar; fi
|
|
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi
|
|
# Force PHPUnit 7 #2693; nightly will match $TRAVIS_PHP_VERSION > '7.1' rule
|
|
before_script:
|
|
- test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
- cp _test/mysql.conf.php.dist _test/mysql.conf.php
|
|
- cp _test/pgsql.conf.php.dist _test/pgsql.conf.php
|
|
- phpunit --version
|
|
script:
|
|
- cd _test && phpunit --verbose --stderr
|