dist: trusty
sudo: false
language: php

install:
  - pear channel-update pear.php.net
  - pear install PHP_CodeSniffer

script:
  - phpenv rehash
  - phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p

matrix:
  fast_finish: true

  include:
    - php: 5.6
    - php: 7.0
    - php: hhvm
    - php: nightly

  allow_failures:
    - php: hhvm
    - php: nightly