Saltstack Official Syslog-NG Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

82 Zeilen
2.5KB

  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 & commitlint'
  28. before_install: 'skip'
  29. script:
  30. # Install and run `salt-lint`
  31. - pip install --user salt-lint
  32. - git ls-files | grep '\.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. # Install and run `commitlint`
  39. - npm i -D @commitlint/config-conventional
  40. @commitlint/travis-cli
  41. - commitlint-travis
  42. # Run the `rubocop` linter in a separate job that is allowed to fail
  43. # Once these lint errors are fixed, this can be merged into a single job
  44. - language: node_js
  45. node_js: lts/*
  46. env: Lint_rubocop
  47. name: 'Lint: rubocop'
  48. before_install: skip
  49. script:
  50. # Install and run `rubocop`
  51. - gem install rubocop
  52. - rubocop -d
  53. ## Define the release stage that runs `semantic-release`
  54. - stage: 'release'
  55. language: 'node_js'
  56. node_js: 'lts/*'
  57. env: 'Release'
  58. name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
  59. before_install: 'skip'
  60. script:
  61. # Update `AUTHORS.md`
  62. - export MAINTAINER_TOKEN=${GH_TOKEN}
  63. - go get github.com/myii/maintainer
  64. - maintainer contributor
  65. # Install all dependencies required for `semantic-release`
  66. - npm i -D @semantic-release/changelog@3
  67. @semantic-release/exec@3
  68. @semantic-release/git@7
  69. deploy:
  70. provider: 'script'
  71. # Opt-in to `dpl v2` to complete the Travis build config validation (beta)
  72. # * https://docs.travis-ci.com/user/build-config-validation
  73. # Deprecated `skip_cleanup` can now be avoided, `cleanup: false` is by default
  74. edge: true
  75. # Run `semantic-release`
  76. script: 'npx semantic-release@15'