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.

59 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. - DISTRIB=debian:wheezy/7
  16. - DISTRIB=debian:jessie/8
  17. - DISTRIB=debian:stretch/9
  18. - DISTRIB=ubuntu:xenial/16.04
  19. script:
  20. - bundle exec kitchen test
  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