.travis.yml 833 B

123456789101112131415161718192021222324252627282930313233343536
  1. language: php
  2. php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1]
  3. sudo: false
  4. cache:
  5. directories:
  6. - $HOME/.composer/cache
  7. branches:
  8. except:
  9. - /^bugfix\/.*$/
  10. - /^feature\/.*$/
  11. - /^optimization\/.*$/
  12. matrix:
  13. fast_finish: true
  14. include:
  15. # Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
  16. - php: hhvm
  17. sudo: required
  18. dist: trusty
  19. group: edge
  20. - php: '7.0'
  21. env: PHPDOCUMENTOR_REFLECTION_DOCBLOCK="^2.0"
  22. before_script:
  23. - if [ -n "$PHPDOCUMENTOR_REFLECTION_DOCBLOCK" ]; then
  24. composer require "phpdocumentor/reflection-docblock:${PHPDOCUMENTOR_REFLECTION_DOCBLOCK}" --no-update;
  25. fi;
  26. - travis_retry composer update --no-interaction
  27. script:
  28. - vendor/bin/phpspec run -fpretty -v
  29. - vendor/bin/phpunit