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.

58 lines
1.4KB

  1. stages:
  2. - test
  3. - commitlint
  4. - name: release
  5. if: branch = master AND type != pull_request
  6. sudo: required
  7. cache: bundler
  8. language: ruby
  9. services:
  10. - docker
  11. # Make sure the instances listed below match up with
  12. # the `platforms` defined in `kitchen.yml`
  13. env:
  14. matrix:
  15. - INSTANCE: debian-9
  16. - INSTANCE: debian-8
  17. - INSTANCE: ubuntu-1804
  18. - INSTANCE: ubuntu-1604
  19. script:
  20. - bundle exec kitchen verify ${INSTANCE}
  21. jobs:
  22. include:
  23. # Define the commitlint stage
  24. - stage: commitlint
  25. language: node_js
  26. node_js: lts/*
  27. before_install: skip
  28. script:
  29. - npm install @commitlint/config-conventional -D
  30. - npm install @commitlint/travis-cli -D
  31. - commitlint-travis
  32. # Define the release stage that runs semantic-release
  33. - stage: release
  34. language: node_js
  35. node_js: lts/*
  36. before_install: skip
  37. script:
  38. # Update `AUTHORS.md`
  39. - export MAINTAINER_TOKEN=${GH_TOKEN}
  40. - go get github.com/myii/maintainer
  41. - maintainer contributor
  42. # Install all dependencies required for `semantic-release`
  43. - npm install @semantic-release/changelog@3 -D
  44. - npm install @semantic-release/exec@3 -D
  45. - npm install @semantic-release/git@7 -D
  46. deploy:
  47. provider: script
  48. skip_cleanup: true
  49. script:
  50. # Run `semantic-release`
  51. - npx semantic-release@15