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.

37 lines
686 B

9 years ago
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
9 years ago
- 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;';
- |
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then
PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
fi
9 years ago
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
9 years ago
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi