Saltstack Official Syslog-NG Formula
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

73 líneas
2.2KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. ## Machine config
  5. dist: bionic
  6. ## Stages and jobs matrix
  7. stages:
  8. - test
  9. - name: release
  10. if: branch = master AND type != pull_request
  11. jobs:
  12. allow_failures:
  13. - env: Lint_rubocop
  14. fast_finish: true
  15. include:
  16. ## Define the test stage that runs the linters (and testing matrix, if applicable)
  17. # Run all of the linters in a single job (except `rubocop`)
  18. - language: node_js
  19. node_js: lts/*
  20. env: Lint
  21. name: 'Lint: salt-lint, yamllint & commitlint'
  22. before_install: skip
  23. script:
  24. # Install and run `salt-lint`
  25. - pip install --user salt-lint
  26. - git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$'
  27. | xargs -I {} salt-lint {}
  28. # Install and run `yamllint`
  29. # Need at least `v1.17.0` for the `yaml-files` setting
  30. - pip install --user yamllint>=1.17.0
  31. - yamllint -s .
  32. # Install and run `commitlint`
  33. - npm install @commitlint/config-conventional -D
  34. - npm install @commitlint/travis-cli -D
  35. - commitlint-travis
  36. # Run the `rubocop` linter in a separate job that is allowed to fail
  37. # Once these lint errors are fixed, this can be merged into a single job
  38. - language: node_js
  39. node_js: lts/*
  40. env: Lint_rubocop
  41. name: 'Lint: rubocop'
  42. before_install: skip
  43. script:
  44. # Install and run `rubocop`
  45. - gem install rubocop
  46. - rubocop -d
  47. ## Define the release stage that runs `semantic-release`
  48. - stage: release
  49. language: node_js
  50. node_js: lts/*
  51. env: Release
  52. name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
  53. before_install: skip
  54. script:
  55. # Update `AUTHORS.md`
  56. - export MAINTAINER_TOKEN=${GH_TOKEN}
  57. - go get github.com/myii/maintainer
  58. - maintainer contributor
  59. # Install all dependencies required for `semantic-release`
  60. - npm install @semantic-release/changelog@3 -D
  61. - npm install @semantic-release/exec@3 -D
  62. - npm install @semantic-release/git@7 -D
  63. deploy:
  64. provider: script
  65. skip_cleanup: true
  66. script:
  67. # Run `semantic-release`
  68. - npx semantic-release@15