language: php

php:
  - 7.1
  - 7.2
  - nightly

matrix:
  allow_failures:
  - php: nightly

env:
  - COMPOSER_OPTS=""
  - COMPOSER_OPTS="--prefer-lowest"

install:
  - composer self-update
  - composer update $COMPOSER_OPTS

script:
  - vendor/bin/phpunit
  - vendor/bin/phpstan analyse --level=max src tests

jobs:
  include:
  - stage: coverage
    script:
    - vendor/bin/phpunit --coverage-clover=coverage.xml
    - bash <(curl -s https://codecov.io/bash)

git:
  depth: 5

group: travis_latest

language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - nightly

matrix:
  allow_failures:
  - php: nightly

env:
  - COMPOSER_OPTS=""
  - COMPOSER_OPTS="--prefer-lowest"

install:
  - composer self-update
  - composer update $COMPOSER_OPTS

script:
  - vendor/bin/phpunit
  - vendor/bin/phpstan analyse --level=max src tests

jobs:
  include:
  - stage: coverage
    script:
    - vendor/bin/phpunit --coverage-clover=coverage.xml
    - bash <(curl -s https://codecov.io/bash)

git:
  depth: 5

group: travis_latest

Add support for PHP 7.3
Add support for PHP 7.3
