improve memory check output
[dokuwiki.git] / .travis.yml
blob75f20dd17561ad65bfed415d4ea3b9f13d8775b1
1 language: php
2 sudo: false
3 php:
4   - "nightly"
5   - "7.3"
6   - "7.2"
7   - "7.1"
8   - "7.0"
9   - "5.6"
10 env:
11   - DISABLE_FUNCTIONS=
12   - DISABLE_FUNCTIONS="gzopen"
13 matrix:
14   fast_finish: true
15   allow_failures:
16     - php: "nightly"
17 notifications:
18   irc:
19     channels:
20         - "chat.freenode.net#dokuwiki"
21     on_success: change
22     on_failure: change
23 install:
24   - if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar; fi
25   - if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi
26   # Force PHPUnit 7 #2693; nightly will match $TRAVIS_PHP_VERSION > '7.1' rule
27 before_script:
28   - test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
29   - cp _test/mysql.conf.php.dist _test/mysql.conf.php
30   - cp _test/pgsql.conf.php.dist _test/pgsql.conf.php
31   - phpunit --version
32 script:
33   - cd _test && phpunit --verbose --stderr