language: php

sudo: false

cache:
  directories:
    - $HOME/.composer/cache
    
matrix:
  include:
    - php: 5.3
      env: DEPENDENCIES='low'
    - php: 5.3
    - php: 5.4
    - php: 5.5
    - php: 5.6
    - php: hhvm
  allow_failures:
    - env: DEPENDENCIES='low'

before_install:
  - composer self-update

install:
  - export COMPOSER_ROOT_VERSION=dev-master
  - if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
  - if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;

script:
  - ./bin/phpspec run --format=pretty
