language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm
env:
  matrix:
  - COMPOSER=tests/composer-5.0.json
  - COMPOSER=tests/composer-5.1.json
  - COMPOSER=tests/composer-5.2.json
  - COMPOSER=tests/composer-5.3.json
matrix:
  include:
  - php: 5.4
    env: COMPOSER=tests/composer-5.0.json

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source

script:
  - phpunit --coverage-clover=coverage.clover

#after_script:
#  - bash -c 'if [ "${TRAVIS_PHP_VERSION:0:4}" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
#  - bash -c 'if [ "${TRAVIS_PHP_VERSION:0:4}" != "hhvm-nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'


language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm
env:
  matrix:
  - LARAVEL=5.0
  - LARAVEL=5.1
  - LARAVEL=5.2
  - LARAVEL=5.3
matrix:
  include:
  - php: 5.4
    env: LARAVEL=5.0
  exclude:
  - php: 5.5
    env: LARAVEL=5.3


before_script:
  - export COMPOSER=tests/composer-$LARAVEL.json
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source

script:
  - phpunit --coverage-clover=coverage.clover

#after_script:
#  - bash -c 'if [ "${TRAVIS_PHP_VERSION:0:4}" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
#  - bash -c 'if [ "${TRAVIS_PHP_VERSION:0:4}" != "hhvm-nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'


Exclude PHP 5.5 for Laravel 5.3
Exclude PHP 5.5 for Laravel 5.3
