.travis.yml 909 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - vendor
  6. - $HOME/.composer/cache/files
  7. php:
  8. - 7.2
  9. - 7.3
  10. - 7.4
  11. - nightly
  12. matrix:
  13. include:
  14. - php: 7.2
  15. env: deps=low
  16. fast_finish: true
  17. env:
  18. global:
  19. - SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
  20. - deps=no
  21. before_install:
  22. - phpenv config-rm xdebug.ini || return 0
  23. - echo memory_limit = -1 >> ~/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/travis.ini
  24. install:
  25. - if [ $TRAVIS_PHP_VERSION = "nightly" ]; then composer config platform.php 7.4.99; fi;
  26. - if [ "$deps" = "no" ]; then composer install; fi;
  27. - if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
  28. - if [ $TRAVIS_PHP_VERSION = "nightly" ]; then composer config --unset platform.php; fi;
  29. - ./vendor/bin/simple-phpunit install
  30. script:
  31. - ./vendor/bin/simple-phpunit