language: php
php:
  - '5.4'
  - '5.5'
  - '5.6'
  - '7.0'
  - '7.1'
  - nightly

matrix:
  include:
    - php: '5.3'
      dist: precise
      sudo: required
  fast_finish: true
  allow_failures:
    - php: nightly

cache:
  directories:
    - vendor

env:
  - ICINGAWEB_VERSION=2.5.1

before_script:
  - ./test/setup_vendor.sh

script:
  - php vendor/phpcs.phar
  - phpunit --testdox || phpunit --verbose
