.travis.yml 555 B

123456789101112131415161718192021222324252627
  1. language: php
  2. before_script:
  3. # Setup Coveralls and httpbin-php
  4. - phpenv local 5.5
  5. - composer install --dev --no-interaction
  6. - TESTPHPBIN=$(phpenv which php)
  7. - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh
  8. - export REQUESTS_TEST_HOST_HTTP=localhost
  9. - phpenv local --unset
  10. # Work out of the tests directory
  11. - cd tests
  12. script:
  13. - phpunit --coverage-clover clover.xml
  14. after_script:
  15. - cd ..
  16. - phpenv local 5.5
  17. - sudo PATH=$PATH vendor/bin/stop.sh
  18. - php vendor/bin/coveralls -v
  19. - phpenv local --unset
  20. php:
  21. - 5.2
  22. - 5.3
  23. - 5.4
  24. - 5.5
  25. - hhvm