language: php
php:
  - '7.1'
  - '7.2'
  - '7.3'
  - '7.4snapshot'
  - nightly

matrix:
  allow_failures:
      - php: nightly
      - php: '7.4snapshot'

install:
  - composer update

script:
  -  if [[ $(phpenv version-name) != '7.1' && $(phpenv version-name) != '7.2' ]] ; then vendor/bin/phpunit --coverage-clover build/coverage/xml ; fi

after_script:
  -  if [[ $(phpenv version-name) != '7.1' && $(phpenv version-name) != '7.2' ]] ; then vendor/bin/codacycoverage clover build/coverage/xml ; fi
language: php
php:
  - '7.1'
  - '7.2'
  - '7.3'
  - '7.4snapshot'
  - nightly

matrix:
  allow_failures:
      - php: nightly
      - php: '7.4snapshot'

install:
  - composer update

script: | 
  if [[ $(phpenv version-name) != '7.1' && $(phpenv version-name) != '7.2' ]] ;
    then vendor/bin/phpunit --coverage-clover build/coverage/xml ;
  else
    vendor/bin/phpunit ;
  fi

after_script:
  -  if [[ $(phpenv version-name) != '7.1' && $(phpenv version-name) != '7.2' ]] ; then vendor/bin/codacycoverage clover build/coverage/xml ; fi
Fix Tavis PHP 7.1 & 7.2
Fix  Tavis PHP 7.1 & 7.2
