.travis.yml 731 B

123456789101112131415161718192021222324252627282930
  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache
  6. php:
  7. - 5.4
  8. - 5.5
  9. - 5.6
  10. - 7.0
  11. - hhvm
  12. matrix:
  13. include:
  14. - php: 5.3
  15. dist: precise
  16. allow_failures:
  17. - php: 7.0
  18. - php: hhvm
  19. before_script:
  20. # The mongo extension is not yet available on PHP 7
  21. - if [[ "$TRAVIS_PHP_VERSION" != "7.0" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo 'extension=mongo.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
  22. - if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]] || [[ "$TRAVIS_PHP_VERSION" = "hhvm" ]]; then composer remove --dev --no-update doctrine/mongodb-odm; fi
  23. - composer install --prefer-dist
  24. script: phpunit