language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'
  - nightly

before_script:
  - composer self-update
  - composer install
  - mkdir build/logs -p

script:
  - phpunit
  - composer cs-check

after_success:
  - vendor/bin/test-reporter

after_script:
  - rm -rf build/logs

branches:
  only:
  - master
  - dev

language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'
  - nightly

before_script:
  - composer self-update
  - composer install
  - mkdir build/logs -p

script:
  - phpunit
  - composer cs-check

after_success:
  - vendor/bin/test-reporter

after_script:
  - rm -rf build/logs

matrix:
  allow_failures:
    - php: nightly

branches:
  only:
  - master
  - dev

Allow php nightly build to fail
Allow php nightly build to fail
