language: php

php:
  - "5.6"
  - "7.0"
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

sudo: false

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

before_script:
  - travis_retry composer self-update
  - composer install --dev --prefer-source
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then mv phpunit.xml.dist phpunit.xml; fi;'

script:
  - if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi
  - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

language: php

php:
  - "5.6"
  - "7.0"
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

sudo: required
dist: trusy

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

before_script:
  - travis_retry composer self-update
  - composer install --dev --prefer-source
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then mv phpunit.xml.dist phpunit.xml; fi;'

script:
  - if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi
  - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

Upgrade container from Precise to Trusty
Upgrade container from Precise to Trusty
