您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

56 行
2.0 KiB

  1. language: php
  2. dist: xenial
  3. cache:
  4. directories:
  5. - $HOME/.cache/pip
  6. - $HOME/.composer/cache
  7. php:
  8. - 7.2
  9. - 7.3
  10. - 7.4
  11. - nightly
  12. matrix:
  13. fast_finish: true
  14. allow_failures:
  15. - php: nightly
  16. include:
  17. - php: 7.2
  18. env: PREFER_LOWEST=1
  19. - php: 7.4
  20. env: LINT=1
  21. before_install:
  22. - PYTHON3_VERSION=$(pyenv versions | grep -oP "3.[0-9]{1,}.[0-9]{1,}" | tail -1)
  23. - pyenv global ${PYTHON3_VERSION}
  24. install:
  25. - if [[ $PREFER_LOWEST != 1 ]]; then travis_retry composer update --no-interaction --prefer-dist; fi
  26. - if [[ $PREFER_LOWEST == 1 ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest; fi
  27. - if [[ $LINT != 1 ]]; then pip3 install cchardet xld_logchecker eac_logchecker; fi
  28. script:
  29. - if [[ $LINT == 1 ]]; then composer run lint; fi
  30. - if [[ $LINT == 1 ]]; then composer run static-analysis; fi
  31. - if [[ $LINT != 1 ]]; then composer run test; fi
  32. - if [[ $LINT != 1 ]]; then bin/logchecker --version; fi
  33. before_deploy:
  34. - rm -rf vendor
  35. - composer install --no-dev --optimize-autoloader
  36. - php -d phar.readonly=0 bin/compile
  37. deploy:
  38. provider: releases
  39. api_key:
  40. secure: fsMbI9nYrxmSQRXNjNPqd7Oxdnnv5HyKPd2Va7AqQzbOsdTTPY5tz3/6RdeaG2cPjG19qxbWu/g21ysb/hWWeVyFpmIc8pl4TZcJTOrv28VNJiru87ynjjCKbP5N0AD6pnaVs3A6u8zjVZy2vlW1eOXU18xgTgA+yk/IoZX2AChItXdphgVI0rd941d/hkrnMj5shzy1Uv6wgbJSpD27UQ4d3zgGAgc6gteuXGRy0dizo4g0VrvQ21rpezLAgT0e1cefjIqAYwLFP2tm/Nsi5QLLYhSsQptkCUto+gFeGCLBgIMV5dz2IWIkFXQOdiVYjIGmT86GFN32bMLMDpO0ppTc8NPDjnni1cnM6/N/gMm/JvmLzGHMMEGYMgO+Yg1qgQi8MwjTk5twklsiJSUHIsa1WWo1+uj1rO5TQ8CzgajmNr5upJ9PI75rbOw+cn2DzR8UBPVDl+1YxJfz4XhmRgSdF98s+7kGS3Ehaby+gXnH76m2dU43CWukaz9hwGvDdG4nc0C7XDtLq15vbKcK5BywI0pCJRVwa81KBrt9mP4CU1hY2VidS1iQubegJ59bNN/B+xBW92i4AmBd1QhbBnExQ05xFpusIxjSx/7ty9GNTqm3P5JDRQUj+dgNGNgfoaq/ACkWfd68W/IHqPLnh6saReQd2mrTBKtoDs0Atik=
  41. file: logchecker.phar
  42. skip_cleanup: true
  43. on:
  44. tags: true
  45. repo: OPSnet/Logchecker
  46. php: '7.2'
  47. condition: $PREFER_LOWEST != 1 && $Lint != 1