language: php

php:
  - hhvm

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

matrix:
  fast_finish: true
  include:
    - php: 5.4
      env: polyfill='true'
    - php: 5.4
      env: polyfill='false'
    - php: 5.5
      env: polyfill='true'
    - php: 5.5
      env: polyfill='false'
    - php: 5.6
      env: polyfill='true'
    - php: 5.6
      env: polyfill='false'
    - php: 7.0
      env: polyfill='true'
    - php: 7.0
      env: polyfill='false'

install: travis_retry composer install --no-interaction --prefer-source

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source
  - if [[ $polyfill = 'false' ]]; then travis_retry composer remove symfony/polyfill-mbstring; fi

script:
  - vendor/bin/phpunit


language: php

php:
  - hhvm

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

matrix:
  fast_finish: true
  include:
    - php: 5.4
      env: polyfill='true'
    - php: 5.4
      env: polyfill='false'
    - php: 5.5
      env: polyfill='true'
    - php: 5.5
      env: polyfill='false'
    - php: 5.6
      env: polyfill='true'
    - php: 5.6
      env: polyfill='false'
    - php: 7.0
      env: polyfill='true'
    - php: 7.0
      env: polyfill='false'
    - php: 7.1
      env: polyfill='true'
    - php: 7.1
      env: polyfill='false'

install: travis_retry composer install --no-interaction --prefer-source

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source
  - if [[ $polyfill = 'false' ]]; then travis_retry composer remove symfony/polyfill-mbstring; fi

script:
  - vendor/bin/phpunit


Add PHP 7.1 to Travis build
Add PHP 7.1 to Travis build