language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6

before_script:
  - COMPOSER_ROOT_VERSION=dev-master composer install --no-interaction

script:
  - phpunit --coverage-clover=coverage.clover
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

sudo: false

language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6

cache:
  directories:
    - bin
    - vendor

before_install:
  - composer selfupdate
  - composer config --global github-oauth.github.com $github_oauth_token

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

script:
  - phpunit --coverage-clover=coverage.clover
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

after_script:
  - rm -v ./vendor/autoload.php ./vendor/composer/!(installed.json)

Use new Travis container-based infrastructure
Use new Travis container-based infrastructure
