.travis.yml 723 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. language: php
  2. php:
  3. - '5.5'
  4. - '5.6'
  5. - '7.0'
  6. - '7.1'
  7. - nightly
  8. - hhvm
  9. matrix:
  10. fast_finish: true
  11. include:
  12. - php: '5.4'
  13. env: COMPOSER_FLAGS="--prefer-lowest"
  14. allow_failures:
  15. - php: nightly
  16. - php: hhvm
  17. before_install:
  18. - |
  19. if [ "$TRAVIS_PHP_VERSION" = "nightly" ] || "$TRAVIS_PHP_VERSION" = "7.1" ]; then
  20. COMPOSER_FLAGS="$COMPOSER_FLAGS --ignore-platform-reqs"
  21. fi;
  22. install:
  23. - composer update -n --prefer-dist $COMPOSER_FLAGS
  24. - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
  25. before_script:
  26. - mkdir -p build/logs
  27. script:
  28. - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
  29. after_script:
  30. - php coveralls.phar -v