.travis.yml
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 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 CODECLIMATE_REPO_TOKEN=43b50fae6a3d2d3ab461dab58eaf72c1db28a96672a2cd7c2b8732f6f0fd9c08 ./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: MG9xDn2cKFMa0HG0+7Q71ruifBbHfbXJ4KA/jqgjFL5Fn2R1GDfVi/LzXe7haDiZmgoDY7pZHim7bIaG4RwInBkZ2WXqvaD8HeRxLtmZmzPOtcwlGrCte7IemcJP3uwToIIm79Im6of06A+tWdHODqe/BTGCxnSiQlOKHNccGf4=