.travis.yml 832 B

1234567891011121314151617181920212223242526272829303132333435
  1. language: php
  2. sudo: false
  3. php:
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. - hhvm
  9. matrix:
  10. allow_failures:
  11. - php: 7.0
  12. - php: hhvm
  13. include:
  14. - php: 5.4
  15. env:
  16. - COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
  17. - PHPUNIT_FLAGS="--coverage-text --coverage-clover=coverage.clover"
  18. - COVERAGE=true
  19. cache:
  20. directories:
  21. - $HOME/.composer/cache
  22. install:
  23. - if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require mongofill/mongofill=dev-master --no-update; fi
  24. - travis_retry composer update --no-progress --no-plugins ${COMPOSER_FLAGS}
  25. script: phpunit ${PHPUNIT_FLAGS}
  26. after_script:
  27. - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  28. - if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi