language: php

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

env:
  matrix:
    - COMPOSER_PREFER="--prefer-stable"
    - COMPOSER_PREFER="--prefer-lowest"

matrix:
  exclude:
    - php: 7.1
      env: COMPOSER_PREFER="--prefer-lowest"
  allow_failures:
    - php: nightly
    - php: hhvm
    - php: hhvm-nightly

script:
  - composer update $COMPOSER_PREFER
  - vendor/bin/phpcs --standard=phpcs.xml classes tests
  - vendor/bin/atoum --test-ext

language: php

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

env:
  matrix:
    - COMPOSER_PREFER="--prefer-stable"
    - COMPOSER_PREFER="--prefer-lowest"

matrix:
  exclude:
    - php: 7.1
      env: COMPOSER_PREFER="--prefer-lowest"
  allow_failures:
    - php: 7.2
    - php: nightly
    - php: hhvm
    - php: hhvm-nightly

script:
  - composer update $COMPOSER_PREFER
  - vendor/bin/phpcs --standard=phpcs.xml classes tests
  - vendor/bin/atoum --test-ext

Update build matrix to check against PHP7.2.
Update build matrix to check against PHP7.2.
