You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
670 B

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