.travis.yml 837 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. os: linux
  2. dist: xenial
  3. language: php
  4. php:
  5. - "7.4"
  6. - "7.3"
  7. - "7.2"
  8. cache:
  9. directories:
  10. - vendor
  11. - $HOME/.composer/cache
  12. env:
  13. jobs:
  14. - DEPENDENCIES=latest
  15. - DEPENDENCIES=oldest
  16. install:
  17. - >
  18. if [ "$DEPENDENCIES" = "latest" ]; then
  19. echo "Installing the latest dependencies";
  20. composer update --with-dependencies --prefer-stable --prefer-dist
  21. else
  22. echo "Installing the lowest dependencies";
  23. composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
  24. fi;
  25. composer show;
  26. script:
  27. - >
  28. echo;
  29. echo "Validating the composer.json";
  30. composer ci:composer-validate;
  31. - >
  32. echo;
  33. echo "Linting all PHP files";
  34. composer ci:lint;
  35. - >
  36. echo;
  37. echo "Running the Psalm static analyzer";
  38. composer ci:psalm;
  39. - >
  40. echo;
  41. echo "Running the PHPUnit tests";
  42. composer ci:tests;