language: php php: - 5.4 - 5.5 - 5.6 - 7.0 - hhvm sudo: false install: - composer self-update - composer global require fxp/composer-asset-plugin:~1.0 - composer update --prefer-dist --no-interaction before_script: - mysql --version - psql --version - mysql -e 'create database test;' - psql -U postgres -c 'CREATE DATABASE test;'; - | if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover" fi script: - vendor/bin/phpunit $PHPUNIT_FLAGS after_script: - | if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar php ocular.phar code-coverage:upload --format=php-clover coverage.clover fi