language: php

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

# run build against nightly but allow them to fail
matrix:
    fast_finish: true
    allow_failures:
        - php: hhvm
    # only one build will send the coverage, this'll speed up other one
    include:
        - php: 5.6
          env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
    - composer self-update

install:
    - composer install --no-interaction --prefer-dist -o

script:
    - mkdir -p build/logs
    - phpunit -v $PHPUNIT_FLAGS

after_script:
    - if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;

language: php

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

# run build against nightly but allow them to fail
matrix:
    fast_finish: true
    allow_failures:
        - php: hhvm
    # only one build will send the coverage, this'll speed up other one
    include:
        - php: 7.0
          env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
    - composer self-update

install:
    - composer install --no-interaction --prefer-dist -o

script:
    - mkdir -p build/logs
    - phpunit -v $PHPUNIT_FLAGS

after_script:
    - if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;

Add PHP 7.1 to Travis
Add PHP 7.1 to Travis
