.travis.yml
language: php
sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install
- mkdir -p build/logs
script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;'
after_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/test-reporter;fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar;fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
notifications:
slack:
secure: D2/DHt/6iUA56PsKoEsXtEcIxyib6ciXZb57wCO2dJZbMItNvGXjvvx9FQmhFZUrwUEIsS+36nrhgUAow0pfjxBz1+XFJYxe0HFJwmeAcTBI2w7K0znlJN9PFKc9prWXjOZz5602wf79ySIMfhiH5/E718gtA7EfhwV4ZDUUsTI=