1language: php
2
3php:
4  - 5.6
5  - 7.0
6  - 7.0snapshot
7  - 7.1
8  - 7.1snapshot
9  - master
10
11env:
12  matrix:
13    - DRIVER="xdebug"
14    - DRIVER="phpdbg"
15
16matrix:
17  allow_failures:
18    - php: master
19  fast_finish: true
20  exclude:
21    - php: 5.6
22      env: DRIVER="phpdbg"
23
24sudo: false
25
26before_install:
27  - composer self-update
28  - composer clear-cache
29
30install:
31  - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
32
33script:
34  - if [[ "$DRIVER" = 'phpdbg' ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
35  - if [[ "$DRIVER" = 'xdebug' ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
36
37after_success:
38  - bash <(curl -s https://codecov.io/bash)
39
40notifications:
41  email: false
42
43