language: php

php:
    - 5.3
    - 5.4
    - 5.5
    - 5.6
    - hhvm

services:
    - riak
    - mongodb
    - memcached
    - redis-server

before_script: 
    - ./Tests/travis/install-deps.sh
    - composer self-update
    - composer --prefer-source --dev install

script:
    - ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
    - ./vendor/bin/phpcs -np --extensions=php --ignore=vendor/*,Tests/* --standard=ruleset.xml .

after_script:
    - php ./vendor/bin/coveralls -v

matrix:
  allow_failures:
    - php: hhvm
