language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - nightly

matrix:
    allow_failures:
        - php: nightly

before_script:
  - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer install -n ; fi
  - if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install --no-dev -n ; fi

script:
  - mkdir -p build/logs
  - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then phpunit --coverage-clover build/logs/clover.xml ; fi
  - if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then phpunit ; fi

after_script:
 - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi

language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - nightly

matrix:
    allow_failures:
        - php: nightly

before_script:
    - echo $TRAVIS_PHP_VERSION
    - php -v
    - PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ;")
    - echo $PHP_VERSION
    - composer install -o -q --no-suggest

script:
  - mkdir -p build/logs
  - if [[ "$PHP_VERSION" == '7.4' ]]; then phpunit --coverage-clover build/logs/clover.xml ; fi
  - if [[ "$PHP_VERSION" != '7.4' ]]; then phpunit ; fi

after_script:
 - if [[ "$PHP_VERSION" == '7.4' ]]; then php vendor/bin/coveralls -v ; fi

Add latest PHP versions to Travis build
Add latest PHP versions to Travis build
