language: php
before_script:
 # Setup Coveralls and httpbin-php
 - phpenv local 5.5
 - composer install --dev --no-interaction --prefer-dist

 - TESTPHPBIN=$(phpenv which php)
 - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh
 - export REQUESTS_TEST_HOST_HTTP=localhost
 - phpenv local --unset

 # Work out of the tests directory
 - cd tests
script:
 - phpunit --coverage-clover clover.xml
after_script:
 - cd ..
 - phpenv local 5.5
 - sudo PATH=$PATH vendor/bin/stop.sh
 - php vendor/bin/coveralls -v
 - phpenv local --unset
php:
  - 5.2
  - 5.3
  - 5.4
  - 5.5
  - hhvm

language: php
before_script:
 # Setup Coveralls and httpbin-php
 - phpenv local 5.5
 - composer install --dev --no-interaction

 - TESTPHPBIN=$(phpenv which php)
 - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh
 - export REQUESTS_TEST_HOST_HTTP=localhost
 - phpenv local --unset

 # Work out of the tests directory
 - cd tests
script:
 - phpunit --coverage-clover clover.xml
after_script:
 - cd ..
 - phpenv local 5.5
 - sudo PATH=$PATH vendor/bin/stop.sh
 - php vendor/bin/coveralls -v
 - phpenv local --unset
php:
  - 5.2
  - 5.3
  - 5.4
  - 5.5
  - hhvm

Revert "Prefer distributions with Composer"
Revert "Prefer distributions with Composer"

This reverts commit eb34a294bdbc35fb0bda7c71d50a356a13225357.

Props @staabm for pointing out `--prefer-dist` is API limited, which can cause
problems on Travis.
