language: php

sudo: false

env:
    - COMPOSER_OPTIONS="

php:
    - 7.1

matrix:
  include:
    - php: 7.1
      env:
        - COMPOSER_OPTIONS="--prefer-lowest"
    - php: 7.1
      env:
        - COMPOSER_OPTIONS="--prefer-stable"
    - php: nightly
  fast_finish: true

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

before_install:
  - composer self-update

install:
  - composer update -n "$COMPOSER_OPTIONS"

script:
    - vendor/bin/phpunit

language: php

sudo: false

env:
    - COMPOSER_OPTIONS="

php:
    - 7.1

matrix:
  fast_finish: true
  include:
    - php: 7.1
      env:
        - COMPOSER_OPTIONS="--prefer-lowest"
    - php: 7.1
      env:
        - COMPOSER_OPTIONS="--prefer-stable"
    - php: nightly
  allow_failures:
    - php: nightly

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

before_install:
  - composer self-update

install:
  - composer update -n "$COMPOSER_OPTIONS"

script:
    - vendor/bin/phpunit

Allow PHP nightly to fail
Allow PHP nightly to fail
