language: php
sudo: trues
php:
  - 7.0
  - 7.1
  - 7.2
  - 7.3

matrix:
  fast_finish: true
  exclude:
    - php: 7.0
      env: LARAVEL_VERSION=5.6.*
    - php: 7.0
      env: LARAVEL_VERSION=5.7.*
    - php: 7.0
      env: LARAVEL_VERSION=5.8.*

install:
  ## back dependencies
  - travis_retry composer self-update
  - travis_retry composer install --prefer-source --no-interaction
  - if [ "$LARAVEL_VERSION" != "" ]; then composer require "laravel/framework:${LARAVEL_VERSION}" --no-update; fi;
  ## front dependencies
  - . $HOME/.nvm/nvm.sh
  - nvm install 11.6
  - nvm use 11.6
  - npm install

script:
  - vendor/bin/phpunit
  - npm run test

env:
  - LARAVEL_VERSION=5.4.*
  - LARAVEL_VERSION=5.5.*
  - LARAVEL_VERSION=5.6.*
  - LARAVEL_VERSION=5.7.*
  - LARAVEL_VERSION=5.8.*
language: php
sudo: trues
php:
  - 7.1
  - 7.2
  - 7.3

matrix:
  fast_finish: true
#  exclude:
#    - php: 7.0
#      env: LARAVEL_VERSION=5.6.*
#    - php: 7.0
#      env: LARAVEL_VERSION=5.7.*
#    - php: 7.0
#      env: LARAVEL_VERSION=5.8.*

install:
  ## back dependencies
  - travis_retry composer self-update
  - travis_retry composer install --prefer-source --no-interaction
  - if [ "$LARAVEL_VERSION" != "" ]; then composer require "laravel/framework:${LARAVEL_VERSION}" --no-update; fi;
  ## front dependencies
  - . $HOME/.nvm/nvm.sh
  - nvm install 11.6
  - nvm use 11.6
  - npm install

script:
  - vendor/bin/phpunit
  - npm run test

env:
  - LARAVEL_VERSION=5.4.*
  - LARAVEL_VERSION=5.5.*
  - LARAVEL_VERSION=5.6.*
  - LARAVEL_VERSION=5.7.*
  - LARAVEL_VERSION=5.8.*
Remove php7 support in Travis
Remove php7 support in Travis
