language: php

cache:
    directories:
        - vendor

matrix:
    # mark as finished before allow_failures are run
    fast_finish: true
    include:
        - php: 5.6
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.0
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.1
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.2
          env: CONFIG="phpunit.xml" COVERGAGE="all"

# test only master (+ pull requests)
branches:
    only:
        - master

# install dependencies
install:
    - travis_wait composer install

# execute phpunit as the script command
script:
    - ./vendor/bin/phpunit -d memory_limit=-1 --colors -c $CONFIG --coverage-clover=coverage.xml

# disable mail notifications
notification:
    email: false

# reduce depth (history) of git checkout
git:
    depth: 30

# we don't need sudo
sudo: false

# send coverage to codecov.io
after_success:
    - bash <(curl -s https://codecov.io/bash) -F $COVERGAGE

language: php

cache:
    directories:
        - vendor

matrix:
    # mark as finished before allow_failures are run
    fast_finish: true
    include:
        - php: 5.6
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.0
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.1
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.2
          env: CONFIG="phpunit.xml" COVERGAGE="all"
        - php: 7.3
          env: CONFIG="phpunit.xml" COVERGAGE="all"

# test only master (+ pull requests)
branches:
    only:
        - master

# install dependencies
install:
    - travis_wait composer install

# execute phpunit as the script command
script:
    - ./vendor/bin/phpunit -d memory_limit=-1 --colors -c $CONFIG --coverage-clover=coverage.xml

# disable mail notifications
notification:
    email: false

# reduce depth (history) of git checkout
git:
    depth: 30

# we don't need sudo
sudo: false

# send coverage to codecov.io
after_success:
    - bash <(curl -s https://codecov.io/bash) -F $COVERGAGE

Add PHP 7.3 test build
Add PHP 7.3 test build
