Saltstack Official Syslog-NG Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. dist: bionic
  5. stages:
  6. - lint
  7. - name: release
  8. if: branch = master AND type != pull_request
  9. jobs:
  10. include:
  11. # Define the `lint` stage (runs `yamllint` and `commitlint`)
  12. - stage: lint
  13. language: node_js
  14. node_js: lts/*
  15. before_install: skip
  16. script:
  17. # Install and run `yamllint`
  18. - pip install --user yamllint
  19. # yamllint disable-line rule:line-length
  20. - yamllint -s . .yamllint pillar.example pillar.debian.example
  21. # Install and run `commitlint`
  22. - npm install @commitlint/config-conventional -D
  23. - npm install @commitlint/travis-cli -D
  24. - commitlint-travis
  25. # Define the release stage that runs `semantic-release`
  26. - stage: release
  27. language: node_js
  28. node_js: lts/*
  29. before_install: skip
  30. script:
  31. # Update `AUTHORS.md`
  32. - export MAINTAINER_TOKEN=${GH_TOKEN}
  33. - go get github.com/myii/maintainer
  34. - maintainer contributor
  35. # Install all dependencies required for `semantic-release`
  36. - npm install @semantic-release/changelog@3 -D
  37. - npm install @semantic-release/exec@3 -D
  38. - npm install @semantic-release/git@7 -D
  39. deploy:
  40. provider: script
  41. skip_cleanup: true
  42. script:
  43. # Run `semantic-release`
  44. - npx semantic-release@15