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

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm
  fast_finish: true

before_install:
  - travis_retry composer self-update

install:
  - composer install --prefer-source

before_script:
  - php -S localhost:8000 -t tests/web/

script: phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
  - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
  - php vendor/bin/test-reporter --coverage-report=coverage.clover --stdout > codeclimate.json
  - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

addons:
  code_climate:
    repo_token: 9179481fd917b2cf1463a145a9cbdbe46c9943b607cc902c5d27afa8cb4ee891

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

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm
  fast_finish: true

before_install:
  - travis_retry composer self-update

install:
  - composer install --prefer-source

before_script:
  - php -S localhost:8000 -t tests/web/

script: phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
  - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
  - php vendor/bin/test-reporter --coverage-report=coverage.clover --stdout > codeclimate.json
  - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

sudo: false

addons:
  code_climate:
    repo_token: 9179481fd917b2cf1463a145a9cbdbe46c9943b607cc902c5d27afa8cb4ee891

Switch to Travis' container-based infrastructure
Switch to Travis' container-based infrastructure
