.travis.yml 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: php
  2. sudo: required
  3. matrix:
  4. fast_finish: true
  5. include:
  6. - php: "5.3"
  7. env: USE_PSALM=0
  8. dist: precise
  9. - php: "5.4"
  10. env: USE_PSALM=0
  11. - php: "5.5"
  12. env: USE_PSALM=0
  13. - php: "5.6"
  14. env: USE_PSALM=1
  15. - php: "7.0"
  16. env: USE_PSALM=1
  17. - php: "7.1"
  18. env: USE_PSALM=1
  19. - php: "7.2"
  20. env: USE_PSALM=1
  21. - php: "nightly"
  22. env: USE_PSALM=1
  23. - php: "master"
  24. env: USE_PSALM=1
  25. - php: "hhvm"
  26. env: USE_PSALM=1
  27. allow_failures:
  28. - php: "master"
  29. - php: "nightly"
  30. before_script:
  31. - travis_retry composer self-update
  32. - if [[ $USE_PSALM -eq 1 ]]; then composer require --dev "vimeo/psalm:dev-master"; fi
  33. - travis_retry composer install --prefer-source
  34. script:
  35. - make lint
  36. - make test
  37. - if [[ $USE_PSALM -eq 1 ]]; then make typecheck; fi