Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

55 rader
1.9 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: jlvbD7nzOz/8vssSI75loBMJE9OosAofTu1IDMc3bfxfRaPT6c2duebJF7Bm0VCTGYWK3Wc+19wwyLpCMoueUUEtKqi6RGIUQyboQvbSEe/cje7/9PgqmFstV8LdBLNOwRVj01YcmGw/iMVc+GxPTtDZtcwVU9bzlMCwXFAlggeId0Qw6KgxN+wTbm+oS3zrIh+TnWhgeWhmMYn0/UAEUEQCsYDI+UJjGWStWdpdJqdMhidg5GQyVtomFg82ZjIw+ywYGMGgq38S4PMRBLoqbxuWs++9LPblWboxtktb4+U0xUMdHfrv/r94b8+nI2SJ1xzzUKTXS/glkk0lJAovSYew6jJiu+gsejiNyR89WNgRGwnWAUA8ZBptrM2b3sxLuZ6RuxQXP3TMpxhQQE/3aodOrACPOHa8uuct0JAj/a2p0WCIj4r76McHrXTjFzDPsbdxD1GwOQmFJGqY5EV7Vez6q++Erp/64JEZJk9/jieTv0arLe76VZPQcZ6TB488tH699MvK7Gg1cc4114FbKIEZrOKF2FOrMAZJ3husjELN0zJYeRPZUy6Y7A2PAWsqfdswlxjP9IxuDFVE/3TW8O1sVItWo4+SSkKTILzsC0qgxVL2lW9WDmyka8U5T2SAa8ye/RRZ3FJYugep49wjUsfLraRdA+Lj7KQXSaMlFa8=
  41. file: logchecker.phar
  42. skip_cleanup: true
  43. on:
  44. tags: true
  45. repo: OPSnet/Logchecker
  46. php: '7.2'