# Use Docker environment
sudo: false

# Setup build matrix
language: php
php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

services:
  - redis-server

env:
  matrix:
    - PREFER_LOWEST="--prefer-lowest"
    - PREFER_LOWEST=""

# Dependencies
before_install:
  - composer self-update

install:
  - travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST

# Setup build matrix
language: php
php:
  - '7.2'
  - '7.1'
  - '7.0'
  - '5.6'
  - '5.5'
  - '5.4'
  - hhvm
matrix:
  allow_failures:
    - php: '5.5'
    - php: '5.4'
    - php: hhvm

services:
  - redis-server

env:
  matrix:
    - PREFER_LOWEST="--prefer-lowest"
    - PREFER_LOWEST=""

# Dependencies
before_install:
  - composer self-update

install:
  - travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST

Add PHP 7.1 and 7.2; make deprecated engines allow failure
Add PHP 7.1 and 7.2; make deprecated engines allow failure

