language: php

matrix:
  exclude:
    - php: 7.0
      env: LARAVEL_VERSION=5.6.* TESTBENCH_VERSION=3.6.*

php:
  - 7.0
  - 7.1

cache:
  directories:
    - ./vendor
    - $HOME/.composer/cache

env:
  - LARAVEL_VERSION=5.5.* TESTBENCH_VERSION=3.5.*
  - LARAVEL_VERSION=5.6.* TESTBENCH_VERSION=3.6.*

before_script:
  - composer self-update
  - composer require "laravel/framework:${LARAVEL_VERSION}" "orchestra/testbench:${TESTBENCH_VERSION}" --no-update
  - if [ "$PHPUNIT_VERSION" != "" ]; then composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update; fi;
  - composer update
  - mkdir -p build/logs

script: phpunit

language: php

matrix:
  exclude:
    - php: 7.0
      env: LARAVEL_VERSION=5.6.* TESTBENCH_VERSION=3.6.*

php:
  - 7.0
  - 7.1
  - 7.2

cache:
  directories:
    - ./vendor
    - $HOME/.composer/cache

env:
  - LARAVEL_VERSION=5.5.* TESTBENCH_VERSION=3.5.*
  - LARAVEL_VERSION=5.6.* TESTBENCH_VERSION=3.6.*

before_script:
  - composer self-update
  - composer require "laravel/framework:${LARAVEL_VERSION}" "orchestra/testbench:${TESTBENCH_VERSION}" --no-update
  - if [ "$PHPUNIT_VERSION" != "" ]; then composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update; fi;
  - composer update
  - mkdir -p build/logs

script: phpunit

Include PHP 7.2 in Travis CI
Include PHP 7.2 in Travis CI
