language: php

php:
  - 7.0
  - 5.6
  - 5.5
  - 5.4
  - 5.3
  - hhvm

env:
  - ADAPTER=MemoryStore
  - ADAPTER=Apc
  - ADAPTER=Memcached
  - ADAPTER=Redis
  - ADAPTER=Couchbase
  - ADAPTER=MySQL
  - ADAPTER=SQLite
  - ADAPTER=PostgreSQL
  - ADAPTER=Filesystem
  - ADAPTER=Flysystem

services:
  - memcached
  - redis

before_script:
  - tests/.travis/$ADAPTER.sh
  - composer self-update && composer install --dev

after_script:
  - php vendor/bin/coveralls

matrix:
  fast_finish: true
  allow_failures:
    - php: 7.0
      env: ADAPTER=Apc
    - php: 7.0
      env: ADAPTER=Memcached
    - php: 7.0
      env: ADAPTER=Redis
    - php: 7.0
      env: ADAPTER=Couchbase
    - php: hhvm
      env: ADAPTER=Couchbase
    - php: hhvm
      env: ADAPTER=PostgreSQL
  exclude:
    - php: 5.3
      env: ADAPTER=Flysystem

sudo: required

language: php

php:
  - 7.0
  - 5.6
  - 5.5
  - 5.4
  - 5.3
  - hhvm

env:
  - ADAPTER=MemoryStore
  - ADAPTER=Apc
  - ADAPTER=Memcached
  - ADAPTER=Redis
  - ADAPTER=Couchbase
  - ADAPTER=MySQL
  - ADAPTER=SQLite
  - ADAPTER=PostgreSQL
  - ADAPTER=Filesystem
  - ADAPTER=Flysystem

services:
  - memcached
  - redis

before_script:
  - tests/.travis/$ADAPTER.sh
  - composer self-update && composer install --dev

after_script:
  - php vendor/bin/coveralls

matrix:
  fast_finish: true
  allow_failures:
    - php: 7.0
      env: ADAPTER=Apc
    - php: 7.0
      env: ADAPTER=Memcached
    - php: 7.0
      env: ADAPTER=Redis
    - php: 7.0
      env: ADAPTER=Couchbase
    - php: hhvm
      env: ADAPTER=Couchbase
    - php: hhvm
      env: ADAPTER=PostgreSQL
  exclude:
    - php: 5.3
      env: ADAPTER=Filesystem
    - php: 5.3
      env: ADAPTER=Flysystem

sudo: required

Exclude Filesystem/PHP5.3 from test matrix
Exclude Filesystem/PHP5.3 from test matrix

It uses Flysystem, which doesn't support PHP5.3
