.travis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. dist: xenial
  2. os: linux
  3. language: php
  4. git:
  5. depth: 10
  6. cache:
  7. directories:
  8. - $HOME/.composer
  9. - $HOME/bin
  10. env:
  11. global:
  12. - DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
  13. - COMPOSER_FLAGS=""
  14. before_install:
  15. # turn off XDebug
  16. - phpenv config-rm xdebug.ini || return 0
  17. jobs:
  18. include:
  19. -
  20. stage: Deployment
  21. php: 7.4
  22. install: ./dev-tools/build.sh
  23. script:
  24. - PHP_CS_FIXER_TEST_ALLOW_SKIPPING_SMOKE_TESTS=0 vendor/bin/phpunit tests/Smoke/
  25. before_deploy:
  26. # ensure that deployment is happening only if tag matches version of PHP CS Fixer
  27. - test $(php dev-tools/info-extractor.php | jq .version.vnumber) == "\"$TRAVIS_TAG\""
  28. deploy:
  29. provider: releases
  30. token:
  31. secure: K9NKi7X1OPz898fxtVc1RfWrSI+4hTFFYOik932wTz1jC4dQJ64Khh1LV9frA1+JiDS3+R6TvmQtpzbkX3y4L75UrSnP1ADH5wfMYIVmydG3ZjTMo8SWQWHmRMh3ORAKTMMpjl4Q7EkRkLp6RncKe+FAFPP5mgv55mtIMaE4qUk=
  32. file: php-cs-fixer.phar
  33. skip_cleanup: true
  34. on:
  35. repo: FriendsOfPHP/PHP-CS-Fixer
  36. tags: true
  37. after_deploy:
  38. - ./dev-tools/trigger-website.sh ${TRAVIS_TOKEN} ${TRAVIS_TAG}