Fix PHP Notices: Reduce error log noise
[dokuwiki.git] / .travis.yml
blob32b8bb49ad539373684ec70a5b8331f422be2093
1 language: php
2 sudo: false
3 php:
4   - "nightly"
5   - "7.1"
6   - "7.0"
7   - "5.6"
8 env:
9   - DISABLE_FUNCTIONS=
10   - DISABLE_FUNCTIONS="gzopen"
11 matrix:
12   fast_finish: true
13   include:
14     - php: hhvm
15       sudo: true
16       dist: trusty
17       group: edge # until the next update
18       addons:
19         apt:
20           packages:
21             - mysql-server-5.6
22             - mysql-client-core-5.6
23             - mysql-client-5.6
24       services:
25         - mysql
26         - postgresql
27       env: DISABLE_FUNCTIONS=
28   allow_failures:
29     - php: "hhvm"
30     - php: "nightly"
31   exclude:
32     - php: "hhvm"
33       env: DISABLE_FUNCTIONS="gzopen"
34 notifications:
35   irc:
36     channels:
37         - "chat.freenode.net#dokuwiki"
38     on_success: change
39     on_failure: change
40 install:
41   - wget -O ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
42   - chmod 755 ~/.phpenv/versions/hhvm/bin/phpunit
43 before_script:
44   # Disable the HHVM JIT for faster Unit Testing
45   - if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi
46   - if [[ $TRAVIS_PHP_VERSION != hhv* ]]; then test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
47   - cp _test/mysql.conf.php.dist _test/mysql.conf.php
48   - cp _test/pgsql.conf.php.dist _test/pgsql.conf.php
49 script: cd _test && phpunit --verbose --stderr