.travis.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. language: php
  2. sudo: false
  3. php:
  4. - 7.0
  5. - 7.1
  6. matrix:
  7. fast_finish: true
  8. exclude:
  9. - php: 7.0
  10. env: DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=latest
  11. - php: 7.0
  12. env: DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=latest
  13. - php: 7.0
  14. env: DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=lowest
  15. - php: 7.0
  16. env: DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=lowest
  17. env:
  18. matrix:
  19. - DOCTRINE_COMMON_VERSION="~2.4.0" DB=mysql DB_USER=root PREFER=latest
  20. - DOCTRINE_COMMON_VERSION="~2.5.0" DB=mysql DB_USER=root PREFER=latest
  21. - DOCTRINE_COMMON_VERSION="~2.6.0" DB=mysql DB_USER=root PREFER=latest
  22. - DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=latest
  23. - DOCTRINE_COMMON_VERSION="~2.4.0" DB=pgsql PREFER=latest
  24. - DOCTRINE_COMMON_VERSION="~2.5.0" DB=pgsql PREFER=latest
  25. - DOCTRINE_COMMON_VERSION="~2.6.0" DB=pgsql PREFER=latest
  26. - DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=latest
  27. - DOCTRINE_COMMON_VERSION="~2.4.0" DB=mysql DB_USER=root PREFER=lowest
  28. - DOCTRINE_COMMON_VERSION="~2.5.0" DB=mysql DB_USER=root PREFER=lowest
  29. - DOCTRINE_COMMON_VERSION="~2.6.0" DB=mysql DB_USER=root PREFER=lowest
  30. - DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=lowest
  31. - DOCTRINE_COMMON_VERSION="~2.4.0" DB=pgsql PREFER=lowest
  32. - DOCTRINE_COMMON_VERSION="~2.5.0" DB=pgsql PREFER=lowest
  33. - DOCTRINE_COMMON_VERSION="~2.6.0" DB=pgsql PREFER=lowest
  34. - DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=lowest
  35. global:
  36. - secure: "VKbBEUu1CftMOWU+dKRmV3KWMB/2rtTYbQh3jR2cgtIZuELPc/QvCgUO2YsiG686vaOOJt9pwVW+CAmQBManRxJEGvJMD3LI3/gif8HH478DYobRO8QLgpICGZrpMx85i8y9ln69gigERdEkHo8ILtwYTRzV4nK9LqVXVTxcnjQ="
  37. cache:
  38. directories:
  39. - $HOME/.composer/cache
  40. before_script:
  41. - composer self-update
  42. - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database orm_behaviors_test' -U postgres; fi"
  43. - sh -c "if [ '$DB' = 'pgsql' ]; then psql orm_behaviors_test -c 'create extension cube' -U postgres; fi"
  44. - sh -c "if [ '$DB' = 'pgsql' ]; then psql orm_behaviors_test -c 'create extension earthdistance' -U postgres; fi"
  45. - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS orm_behaviors_test' -u$DB_USER; fi"
  46. - composer require doctrine/common:${DOCTRINE_COMMON_VERSION}
  47. - sh -c "if [ '$PREFER' = 'lowest' ]; then composer update --prefer-lowest; fi"
  48. script:
  49. - bin/parallel-lint -e php,phpt --exclude vendor .
  50. - bin/yaml-lint config/*
  51. - bin/phpunit