language: php
sudo: false
dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7
- 7.1
- 7.2
- hhvm
before_install:
- php /home/travis/.phpenv/versions/hhvm/bin/composer self-update
before_script:
- composer install
script:
- if [ "$TRAVIS_PHP_VERSION" == 7 ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" != 7 ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [ "$TRAVIS_PHP_VERSION" != 7 ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
|