.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache/files
  6. php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm]
  7. env:
  8. - WEBDRIVER=selenium
  9. matrix:
  10. allow_failures:
  11. - env: 'WEBDRIVER=phantomjs'
  12. - env: WEBDRIVER=phantomjs PHANTOM_VERSION=2
  13. fast_finish: true
  14. include:
  15. - php: 5.5
  16. env: WEBDRIVER=phantomjs
  17. - php: 5.5
  18. env: WEBDRIVER=phantomjs PHANTOM_VERSION=2
  19. before_script:
  20. - export WEB_FIXTURES_HOST=http://localhost:8000
  21. - export WEB_FIXTURES_BROWSER=firefox
  22. - sh bin/run-"$WEBDRIVER".sh
  23. - composer install --prefer-source
  24. # Start a webserver for web fixtures. Force using PHP 5.6 to be able to run it on PHP 5.3 and HHVM jobs too
  25. - ~/.phpenv/versions/5.6/bin/php -S localhost:8000 -t vendor/behat/mink/driver-testsuite/web-fixtures > /dev/null 2>&1 &
  26. script: phpunit -v --coverage-clover=coverage.clover
  27. after_script:
  28. - wget https://scrutinizer-ci.com/ocular.phar
  29. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  30. after_failure:
  31. - cat /tmp/webdriver_output.txt