language: php

sudo: false

env:
  global:
    - setup=basic
    - xdebug=true

matrix:
  include:
    - php: 7.0
    - php: 7.1
      env: xdebug=false

before_install:
  - if [[ $xdebug = 'true' ]] ; then phpenv config-rm xdebug.ini; fi

install:
  - if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction --no-suggest; fi

script:
  - vendor/bin/phpunit

language: php

sudo: false

env:
  global:
    - setup=basic
    - xdebug=true

matrix:
  include:
    - php: 7.0
      env: xdebug=false
    - php: 7.1
      env: xdebug=false

before_install:
  - if [[ $xdebug = 'true' ]] ; then phpenv config-rm xdebug.ini; fi

install:
  - if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction --no-suggest; fi

script:
  - vendor/bin/phpunit

Set xdebug=false for php 7.0
Set xdebug=false for php 7.0