sudo: false
language: php

php:
  - 5.5.9
  - 5.6
  - 7.0
  - hhvm

env:
  global:
    - laravel='*'

matrix:
  include:
    - php: 5.6
      env: laravel='5.1'
    - php: 5.6
      env: laravel='5.2'
  fast_finish: true

before_install:
  - pip install --user codecov

before_script:
  - travis_retry composer self-update
  - if [[ $laravel = '*' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
  - if [[ $laravel = '5.1' ]]; then travis_retry composer require "illuminate/contracts=5.1.*" --prefer-source --no-interaction --dev; fi
  - if [[ $laravel = '5.2' ]]; then travis_retry composer require "illuminate/contracts=5.2.*" --prefer-source --no-interaction --dev; fi

script:
  - vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml

after_success:
  - codecov

sudo: false
language: php

php:
  - 5.5.9
  - 5.6
  - 7.0
  - hhvm

env:
  global:
    - laravel='*'

matrix:
  include:
    - php: 5.6
      env: laravel='5.1'
    - php: 5.6
      env: laravel='5.2'
  fast_finish: true

before_install:
  - pip install --user codecov

before_script:
  - travis_retry composer self-update
  - if [[ $laravel = '*' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
  - if [[ $laravel = '5.1' ]]; then travis_retry composer require "illuminate/contracts=5.1.*" --prefer-source --no-interaction; fi
  - if [[ $laravel = '5.2' ]]; then travis_retry composer require "illuminate/contracts=5.2.*" --prefer-source --no-interaction; fi

script:
  - vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml

after_success:
  - codecov

Remove useless default --dev falg
Remove useless default --dev falg
