Saltstack Official Syslog-NG Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash syslog-ng-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./syslog_ng/defaults.yml 4:1 warning missing document start "---" (document-start) ./syslog_ng/os_family_map.yml 4:1 warning missing document start "---" (document-start) ./syslog_ng/os_codename_map.yml 5:1 warning missing document start "---" (document-start) pillar.example 1:1 warning missing document start "---" (document-start) 3:3 error wrong indentation: expected 4 but found 2 (indentation) 5:3 error wrong indentation: expected 4 but found 2 (indentation) 7:3 error wrong indentation: expected 4 but found 2 (indentation) 10:3 error wrong indentation: expected 4 but found 2 (indentation) 10:15 warning truthy value should be one of [false, true] (truthy) 11:14 warning truthy value should be one of [false, true] (truthy) 12:15 warning truthy value should be one of [false, true] (truthy) 13:20 warning truthy value should be one of [false, true] (truthy) 14:22 warning truthy value should be one of [false, true] (truthy) 15:21 warning truthy value should be one of [false, true] (truthy) 17:3 error wrong indentation: expected 4 but found 2 (indentation) 18:5 error wrong indentation: expected 6 but found 4 (indentation) 20:5 error wrong indentation: expected 6 but found 4 (indentation) 22:7 error wrong indentation: expected 8 but found 6 (indentation) 25:3 error wrong indentation: expected 4 but found 2 (indentation) 26:5 error wrong indentation: expected 6 but found 4 (indentation) 27:7 error wrong indentation: expected 8 but found 6 (indentation) 29:5 error wrong indentation: expected 6 but found 4 (indentation) 31:5 error wrong indentation: expected 6 but found 4 (indentation) 33:5 error wrong indentation: expected 6 but found 4 (indentation) 35:5 error wrong indentation: expected 6 but found 4 (indentation) 37:3 error wrong indentation: expected 4 but found 2 (indentation) 38:5 error wrong indentation: expected 6 but found 4 (indentation) 40:5 error wrong indentation: expected 6 but found 4 (indentation) 42:5 error wrong indentation: expected 6 but found 4 (indentation) 45:3 error wrong indentation: expected 4 but found 2 (indentation) pillar.debian.example 1:1 warning missing document start "---" (document-start) 3:24 warning truthy value should be one of [false, true] (truthy) 5:16 warning truthy value should be one of [false, true] (truthy) 6:17 warning truthy value should be one of [false, true] (truthy) 15:7 error wrong indentation: expected 8 but found 6 (indentation) 21:7 error wrong indentation: expected 8 but found 6 (indentation) 24:7 error wrong indentation: expected 8 but found 6 (indentation) 27:7 error wrong indentation: expected 8 but found 6 (indentation) 30:7 error wrong indentation: expected 8 but found 6 (indentation) 33:7 error wrong indentation: expected 8 but found 6 (indentation) 36:7 error wrong indentation: expected 8 but found 6 (indentation) 39:7 error wrong indentation: expected 8 but found 6 (indentation) 42:7 error wrong indentation: expected 8 but found 6 (indentation) 45:7 error wrong indentation: expected 8 but found 6 (indentation) 50:7 error wrong indentation: expected 8 but found 6 (indentation) 51:9 error wrong indentation: expected 10 but found 8 (indentation) 53:7 error wrong indentation: expected 8 but found 6 (indentation) 54:9 error wrong indentation: expected 10 but found 8 (indentation) 56:7 error wrong indentation: expected 8 but found 6 (indentation) 57:9 error wrong indentation: expected 10 but found 8 (indentation) 61:7 error wrong indentation: expected 8 but found 6 (indentation) 62:9 error wrong indentation: expected 10 but found 8 (indentation) 64:7 error wrong indentation: expected 8 but found 6 (indentation) 65:9 error wrong indentation: expected 10 but found 8 (indentation) 67:7 error wrong indentation: expected 8 but found 6 (indentation) 68:9 error wrong indentation: expected 10 but found 8 (indentation) 72:7 error wrong indentation: expected 8 but found 6 (indentation) 73:9 error wrong indentation: expected 10 but found 8 (indentation) 75:7 error wrong indentation: expected 8 but found 6 (indentation) 76:9 error wrong indentation: expected 10 but found 8 (indentation) 78:7 error wrong indentation: expected 8 but found 6 (indentation) 79:9 error wrong indentation: expected 10 but found 8 (indentation) 83:7 error wrong indentation: expected 8 but found 6 (indentation) 84:9 error wrong indentation: expected 10 but found 8 (indentation) 88:7 error wrong indentation: expected 8 but found 6 (indentation) 89:9 error wrong indentation: expected 10 but found 8 (indentation) 93:7 error wrong indentation: expected 8 but found 6 (indentation) 94:9 error wrong indentation: expected 10 but found 8 (indentation) 98:7 error wrong indentation: expected 8 but found 6 (indentation) 99:9 error wrong indentation: expected 10 but found 8 (indentation) 103:7 error wrong indentation: expected 8 but found 6 (indentation) 105:7 error wrong indentation: expected 8 but found 6 (indentation) 107:7 error wrong indentation: expected 8 but found 6 (indentation) 109:7 error wrong indentation: expected 8 but found 6 (indentation) 111:7 error wrong indentation: expected 8 but found 6 (indentation) 113:7 error wrong indentation: expected 8 but found 6 (indentation) 115:7 error wrong indentation: expected 8 but found 6 (indentation) 117:7 error wrong indentation: expected 8 but found 6 (indentation) 120:7 error wrong indentation: expected 8 but found 6 (indentation) 122:7 error wrong indentation: expected 8 but found 6 (indentation) 125:7 error wrong indentation: expected 8 but found 6 (indentation) 127:7 error wrong indentation: expected 8 but found 6 (indentation) 129:7 error wrong indentation: expected 8 but found 6 (indentation) 131:7 error wrong indentation: expected 8 but found 6 (indentation) 133:7 error wrong indentation: expected 8 but found 6 (indentation) 135:7 error wrong indentation: expected 8 but found 6 (indentation) 135:89 error line too long (97 > 88 characters) (line-length) 137:7 error wrong indentation: expected 8 but found 6 (indentation) 139:7 error wrong indentation: expected 8 but found 6 (indentation) 141:7 error wrong indentation: expected 8 but found 6 (indentation) 143:7 error wrong indentation: expected 8 but found 6 (indentation) 145:7 error wrong indentation: expected 8 but found 6 (indentation) 147:7 error wrong indentation: expected 8 but found 6 (indentation) 149:7 error wrong indentation: expected 8 but found 6 (indentation) 151:7 error wrong indentation: expected 8 but found 6 (indentation) ```
5 роки тому
feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash syslog-ng-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./syslog_ng/defaults.yml 4:1 warning missing document start "---" (document-start) ./syslog_ng/os_family_map.yml 4:1 warning missing document start "---" (document-start) ./syslog_ng/os_codename_map.yml 5:1 warning missing document start "---" (document-start) pillar.example 1:1 warning missing document start "---" (document-start) 3:3 error wrong indentation: expected 4 but found 2 (indentation) 5:3 error wrong indentation: expected 4 but found 2 (indentation) 7:3 error wrong indentation: expected 4 but found 2 (indentation) 10:3 error wrong indentation: expected 4 but found 2 (indentation) 10:15 warning truthy value should be one of [false, true] (truthy) 11:14 warning truthy value should be one of [false, true] (truthy) 12:15 warning truthy value should be one of [false, true] (truthy) 13:20 warning truthy value should be one of [false, true] (truthy) 14:22 warning truthy value should be one of [false, true] (truthy) 15:21 warning truthy value should be one of [false, true] (truthy) 17:3 error wrong indentation: expected 4 but found 2 (indentation) 18:5 error wrong indentation: expected 6 but found 4 (indentation) 20:5 error wrong indentation: expected 6 but found 4 (indentation) 22:7 error wrong indentation: expected 8 but found 6 (indentation) 25:3 error wrong indentation: expected 4 but found 2 (indentation) 26:5 error wrong indentation: expected 6 but found 4 (indentation) 27:7 error wrong indentation: expected 8 but found 6 (indentation) 29:5 error wrong indentation: expected 6 but found 4 (indentation) 31:5 error wrong indentation: expected 6 but found 4 (indentation) 33:5 error wrong indentation: expected 6 but found 4 (indentation) 35:5 error wrong indentation: expected 6 but found 4 (indentation) 37:3 error wrong indentation: expected 4 but found 2 (indentation) 38:5 error wrong indentation: expected 6 but found 4 (indentation) 40:5 error wrong indentation: expected 6 but found 4 (indentation) 42:5 error wrong indentation: expected 6 but found 4 (indentation) 45:3 error wrong indentation: expected 4 but found 2 (indentation) pillar.debian.example 1:1 warning missing document start "---" (document-start) 3:24 warning truthy value should be one of [false, true] (truthy) 5:16 warning truthy value should be one of [false, true] (truthy) 6:17 warning truthy value should be one of [false, true] (truthy) 15:7 error wrong indentation: expected 8 but found 6 (indentation) 21:7 error wrong indentation: expected 8 but found 6 (indentation) 24:7 error wrong indentation: expected 8 but found 6 (indentation) 27:7 error wrong indentation: expected 8 but found 6 (indentation) 30:7 error wrong indentation: expected 8 but found 6 (indentation) 33:7 error wrong indentation: expected 8 but found 6 (indentation) 36:7 error wrong indentation: expected 8 but found 6 (indentation) 39:7 error wrong indentation: expected 8 but found 6 (indentation) 42:7 error wrong indentation: expected 8 but found 6 (indentation) 45:7 error wrong indentation: expected 8 but found 6 (indentation) 50:7 error wrong indentation: expected 8 but found 6 (indentation) 51:9 error wrong indentation: expected 10 but found 8 (indentation) 53:7 error wrong indentation: expected 8 but found 6 (indentation) 54:9 error wrong indentation: expected 10 but found 8 (indentation) 56:7 error wrong indentation: expected 8 but found 6 (indentation) 57:9 error wrong indentation: expected 10 but found 8 (indentation) 61:7 error wrong indentation: expected 8 but found 6 (indentation) 62:9 error wrong indentation: expected 10 but found 8 (indentation) 64:7 error wrong indentation: expected 8 but found 6 (indentation) 65:9 error wrong indentation: expected 10 but found 8 (indentation) 67:7 error wrong indentation: expected 8 but found 6 (indentation) 68:9 error wrong indentation: expected 10 but found 8 (indentation) 72:7 error wrong indentation: expected 8 but found 6 (indentation) 73:9 error wrong indentation: expected 10 but found 8 (indentation) 75:7 error wrong indentation: expected 8 but found 6 (indentation) 76:9 error wrong indentation: expected 10 but found 8 (indentation) 78:7 error wrong indentation: expected 8 but found 6 (indentation) 79:9 error wrong indentation: expected 10 but found 8 (indentation) 83:7 error wrong indentation: expected 8 but found 6 (indentation) 84:9 error wrong indentation: expected 10 but found 8 (indentation) 88:7 error wrong indentation: expected 8 but found 6 (indentation) 89:9 error wrong indentation: expected 10 but found 8 (indentation) 93:7 error wrong indentation: expected 8 but found 6 (indentation) 94:9 error wrong indentation: expected 10 but found 8 (indentation) 98:7 error wrong indentation: expected 8 but found 6 (indentation) 99:9 error wrong indentation: expected 10 but found 8 (indentation) 103:7 error wrong indentation: expected 8 but found 6 (indentation) 105:7 error wrong indentation: expected 8 but found 6 (indentation) 107:7 error wrong indentation: expected 8 but found 6 (indentation) 109:7 error wrong indentation: expected 8 but found 6 (indentation) 111:7 error wrong indentation: expected 8 but found 6 (indentation) 113:7 error wrong indentation: expected 8 but found 6 (indentation) 115:7 error wrong indentation: expected 8 but found 6 (indentation) 117:7 error wrong indentation: expected 8 but found 6 (indentation) 120:7 error wrong indentation: expected 8 but found 6 (indentation) 122:7 error wrong indentation: expected 8 but found 6 (indentation) 125:7 error wrong indentation: expected 8 but found 6 (indentation) 127:7 error wrong indentation: expected 8 but found 6 (indentation) 129:7 error wrong indentation: expected 8 but found 6 (indentation) 131:7 error wrong indentation: expected 8 but found 6 (indentation) 133:7 error wrong indentation: expected 8 but found 6 (indentation) 135:7 error wrong indentation: expected 8 but found 6 (indentation) 135:89 error line too long (97 > 88 characters) (line-length) 137:7 error wrong indentation: expected 8 but found 6 (indentation) 139:7 error wrong indentation: expected 8 but found 6 (indentation) 141:7 error wrong indentation: expected 8 but found 6 (indentation) 143:7 error wrong indentation: expected 8 but found 6 (indentation) 145:7 error wrong indentation: expected 8 but found 6 (indentation) 147:7 error wrong indentation: expected 8 but found 6 (indentation) 149:7 error wrong indentation: expected 8 but found 6 (indentation) 151:7 error wrong indentation: expected 8 but found 6 (indentation) ```
5 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. ## Machine config
  5. os: 'linux'
  6. arch: 'amd64'
  7. dist: 'bionic'
  8. version: '~> 1.0'
  9. ## Language and cache config
  10. language: 'ruby'
  11. cache: 'bundler'
  12. ## Stages and jobs matrix
  13. stages:
  14. - test
  15. - name: 'release'
  16. if: 'branch = master AND type != pull_request'
  17. jobs:
  18. allow_failures:
  19. - env: Lint_rubocop
  20. fast_finish: true
  21. include:
  22. ## Define the test stage that runs the linters (and testing matrix, if applicable)
  23. # Run all of the linters in a single job (except `rubocop`)
  24. - language: 'node_js'
  25. node_js: 'lts/*'
  26. env: 'Lint'
  27. name: 'Lint: salt-lint, yamllint, shellcheck & commitlint'
  28. before_install: 'skip'
  29. script:
  30. # Install and run `salt-lint`
  31. - pip install --user salt-lint
  32. - git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst'
  33. | xargs salt-lint
  34. # Install and run `yamllint`
  35. # Need at least `v1.17.0` for the `yaml-files` setting
  36. - pip install --user yamllint>=1.17.0
  37. - yamllint -s .
  38. # Run `shellcheck` (already pre-installed in Travis)
  39. - shellcheck --version
  40. - git ls-files -- '*.sh' '*.bash' '*.ksh'
  41. | xargs shellcheck
  42. # Install and run `commitlint`
  43. - npm i -D @commitlint/config-conventional
  44. @commitlint/travis-cli
  45. - commitlint-travis
  46. # Run the `rubocop` linter in a separate job that is allowed to fail
  47. # Once these lint errors are fixed, this can be merged into a single job
  48. - language: node_js
  49. node_js: lts/*
  50. env: Lint_rubocop
  51. name: 'Lint: rubocop'
  52. before_install: skip
  53. script:
  54. # Install and run `rubocop`
  55. - gem install rubocop
  56. - rubocop -d
  57. # Run `pre-commit` linters in a single job
  58. - language: 'python'
  59. env: 'Lint_pre-commit'
  60. name: 'Lint: pre-commit'
  61. before_install: 'skip'
  62. cache:
  63. directories:
  64. - $HOME/.cache/pre-commit
  65. script:
  66. # Install and run `pre-commit`
  67. - pip install pre-commit==2.7.1
  68. - pre-commit run --all-files --color always --verbose
  69. - pre-commit run --color always --hook-stage manual --verbose commitlint-travis
  70. ## Define the release stage that runs `semantic-release`
  71. - stage: 'release'
  72. language: 'node_js'
  73. node_js: 'lts/*'
  74. env: 'Release'
  75. name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
  76. before_install: 'skip'
  77. script:
  78. # Update `AUTHORS.md`
  79. - export MAINTAINER_TOKEN=${GH_TOKEN}
  80. - go get github.com/myii/maintainer
  81. - maintainer contributor
  82. # Install all dependencies required for `semantic-release`
  83. - npm i -D @semantic-release/changelog@3
  84. @semantic-release/exec@3
  85. @semantic-release/git@7
  86. deploy:
  87. provider: 'script'
  88. # Opt-in to `dpl v2` to complete the Travis build config validation (beta)
  89. # * https://docs.travis-ci.com/user/build-config-validation
  90. # Deprecated `skip_cleanup` can now be avoided, `cleanup: false` is by default
  91. edge: true
  92. # Run `semantic-release`
  93. script: 'npx semantic-release@15.14'
  94. # Notification options: `always`, `never` or `change`
  95. notifications:
  96. webhooks:
  97. if: 'repo = saltstack-formulas/syslog-ng-formula'
  98. urls:
  99. - https://saltstack-formulas.zulipchat.com/api/v1/external/travis?api_key=HsIq3o5QmLxdnVCKF9is0FUIpkpAY79P&stream=CI&topic=saltstack-formulas%2Fsyslog-ng-formula&ignore_pull_requests=true
  100. on_success: always # default: always
  101. on_failure: always # default: always
  102. on_start: always # default: never
  103. on_cancel: always # default: always
  104. on_error: always # default: always