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.

46 line
1.3KB

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