language: php

dist: trusty

cache:
  directories:
    - $HOME/.composer/cache/files

php:
  - 5.6
  - 7.0
  - 7.1
  - hhvm
  - nightly

env:
  - PREFER_LOWEST=--prefer-lowest
  - PREFER_LOWEST=

matrix:
  allow_failures:
    - php: nightly

before_script:
  - travis_retry composer update --no-interaction --prefer-dist $PREFER_LOWEST

script:
  - vendor/bin/phpcs -p --warning-severity=0 src/ tests/
  - vendor/bin/phpunit --coverage-clover=./tests/report/coverage.clover

after_script:
  - test -f ./tests/report/coverage.clover && (wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover ./tests/report/coverage.clover)

language: php

dist: trusty

cache:
  directories:
    - $HOME/.composer/cache/files

php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm
  - nightly

env:
  - PREFER_LOWEST=--prefer-lowest
  - PREFER_LOWEST=

matrix:
  allow_failures:
    - php: nightly

before_script:
  - travis_retry composer update --no-interaction --prefer-dist $PREFER_LOWEST

script:
  - vendor/bin/phpcs -p --warning-severity=0 src/ tests/
  - vendor/bin/phpunit --coverage-clover=./tests/report/coverage.clover

after_script:
  - test -f ./tests/report/coverage.clover && (wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover ./tests/report/coverage.clover)

Test PHP 7.2 as well
Test PHP 7.2 as well
