.travis.yml 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: php
  2. php:
  3. - 7.1
  4. - 7.2
  5. env:
  6. global:
  7. - setup=stable
  8. - laravel=5.x
  9. - testbench=3.x
  10. matrix:
  11. include:
  12. - php: 7.1
  13. env: setup=lowest
  14. - php: 7.1
  15. env:
  16. - laravel=5.6.x
  17. - testbench=3.6.x
  18. - php: 7.1
  19. env:
  20. - laravel=5.7.x
  21. - testbench=3.7.x
  22. sudo: false
  23. cache:
  24. directories:
  25. - $HOME/.composer/cache
  26. install:
  27. - composer require illuminate/support:${laravel} --no-update
  28. - composer require laravel/framework:${laravel} --no-update
  29. - composer require orchestra/testbench:${testbench} --no-update
  30. - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
  31. - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
  32. script:
  33. - vendor/bin/phpunit
  34. - vendor/bin/phpcs --standard=psr2 src/