dist: trusty
language: php
branches:
  only:
  - master
  - "/^[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+.*$/"
matrix:
  fast_finish: true
  include:
  - php: 7.2
    env: DEPENCENCIES=highest
  - php: 7.2
  - php: 7.1
  - php: 7.0.11
  - php: 5.6
    env: SCENARIO=phpunit5
  - php: 5.6
    env: SCENARIO=phpunit5 DEPENDENCIES=lowest
sudo: false
cache:
  directories:
  - "$HOME/.composer/cache"
install:
- .scenarios.lock/install "${SCENARIO}" "${DEPENDENCIES}"
script:
- composer test
after_success:
- travis_retry php vendor/bin/php-coveralls -v
before_deploy:
- composer phar:install-tools
- composer install --prefer-dist --no-dev --no-interaction
- php box.phar build
deploy:
  provider: releases
  api_key:
    secure: Ygn+dt902El+EckT1cVKMfFf3TaN/I58MU5YlTRVx6zJYcgLGUteuGiIBBBGrQgoipg1U0AGLWQHLdxsKrLh/eWcO8e1DV6JdJlJZWyF4+dk2lkJhwIHe4ws0Ab/geMKVlzStpZAWq2fWHo/Ckiz/OcIBSzk8N6qW7M3nX0O52/tRECDy3R2bElYNUQLFGdzLYQN+c/3XDDEIsneQ92LpOlKFzmomxtzrsjDu6TNquHCUKOYLEQRRDVXJ2Bkc4C5nr2OkDfY3FZYEaPEGX6NXRRw+mNZzpm+iO3FuAeQsvYqpQ5fXmhw2Ru9JB6UqURNCNX6cr4tgfwW64F942TNZDeW/SizBYTibAxBHWbhspOAu/q8KladeMLnCfj6hs8kH94CLbptwQWYA/mEZkDiWCWlkuQY0h74wDDX5BXdHvCktNqawO7kCcak5VR99o5FGYPFC3on1t2TH0aojnVb47jghSmt1NlwwrbrtwEZNgHVgm75wWZfYmwQrF79HXEU41bM8dYaEvo2Y82vzI1+rXmLhY1GgcMCtRkmh20UunFCdQh0m/dm602Uri4OMPtPK7hgYCCi/D16a/czffSspVOeF2woGHjXrMuzNwOjQucsEzQXVMNDalFaGpZ3ui2BdN5w3g6j2pRL7Niv/IX5PzQrGdQUEGcnbHk28Kz0Zaw=
  file: dot-project.phar
  skip_cleanup: true
  on:
    tags: true
    repo: consolidation/filter-via-dot-access-data
