.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. dist: bionic
  2. language: php
  3. env:
  4. global:
  5. - SETUP=stable
  6. - COMPOSER_MEMORY_LIMIT=-1
  7. matrix:
  8. fast_finish: true
  9. include:
  10. - php: 7.4
  11. env: COMPOSER=composer.dingo.json
  12. name: "With Dingo router"
  13. - php: 7.4
  14. env: SETUP=lint
  15. name: "Lint code"
  16. - php: 7.3
  17. - php: 7.3
  18. env: SETUP=lowest
  19. - php: 7.4
  20. # No lowest for 7.4 because the lowest we support (Laravel 5.8) doesn't support 7.4
  21. cache:
  22. directories:
  23. - $HOME/.composer/cache
  24. before_install:
  25. - travis_retry composer self-update
  26. install:
  27. - if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
  28. - if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi
  29. - if [[ $SETUP = 'lint' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; composer lint -- --memory-limit 1G; fi
  30. script:
  31. - if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-parallel-ci;