language: php

sudo: false

dist: precise

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

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

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

dist: precise

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

matrix:
  include:
    - php: '5.3'
    - 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

Test lowest dependencies against highest supported PHP version
Test lowest dependencies against highest supported PHP version

