language: php

sudo: false

cache:
  directories:
    - $HOME/.composer/cache

matrix:
  include:
    - php: '5.3'
      dist: 'precise'
    - php: '5.4'
    - php: '5.5'
    - php: '5.6'
    - php: '7.0'
    - php: '7.1'
    - php: '7.1'
      env: deps='low'

install:
  - if [[ ! $deps ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
  - if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi

script:
  - vendor/bin/phpunit --coverage-text

language: php

sudo: false

cache:
  directories:
    - $HOME/.composer/cache

matrix:
  include:
    - php: '5.3'
      dist: 'precise'
    - php: '5.4'
    - php: '5.5'
    - php: '5.6'
    - php: '7.0'
    - php: '7.1'
    - php: '7.1'
      env: deps='low'
    - php: '7.1'
      env: deps='beta'

install:
  - if [[ ! $deps ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
  - if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi
  - if [[ $deps = 'beta' ]]; then composer config minimum-stability beta && composer update --prefer-dist --no-progress --no-suggest --ansi; fi

script:
  - vendor/bin/phpunit --coverage-text

Tweak Travis config to install beta deps
Tweak Travis config to install beta deps
