language: php
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- nightly
script: phpunit test/test.php
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
[[ -f ocular.phar ]] || wget https://scrutinizer-ci.com/ocular.phar
php ocular.phpar code-coverage:upload --format=php-clover coverage.xml
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.composer/cache
- vendor
- ocular.phar
|