language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

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

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

install:
  - travis_retry composer selfupdate
  - travis_retry composer install --prefer-dist --no-interaction
  - travis_retry composer require codeclimate/php-test-reporter --dev

script:
  - vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml --coverage-text

after_script:
  - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
  - CODECLIMATE_REPO_TOKEN="2a816e25a4bcd8ded5ca51664e7f432c134d024ec16b76309dfb18665b0f9c9a" vendor/bin/test-reporter --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"

language: php

php:
  - 5.4
  - 5.5
  - 5.6

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

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

install:
  - travis_retry composer selfupdate
  - travis_retry composer install --prefer-dist --no-interaction
  - travis_retry composer require codeclimate/php-test-reporter --dev

script:
  - vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml --coverage-text

after_script:
  - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
  - CODECLIMATE_REPO_TOKEN="2a816e25a4bcd8ded5ca51664e7f432c134d024ec16b76309dfb18665b0f9c9a" vendor/bin/test-reporter --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"

Remove hhvm from CI test
Remove hhvm from CI test
