language: php

install:
  - composer install

php:
  - 7
  - hhvm
  - nightly

script:
  - mkdir -p build/logs
  - vendor/bin/phpunit -c build

services:
  - redis

after_script:
    - CODECLIMATE_REPO_TOKEN=2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058 vendor/bin/test-reporter

matrix:
  allow_failures:
    - php: nightly
    - php: hhvm

addons:
    code_climate:
        repo_token: 2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058