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