Saltstack Official Salt 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.

68 lines
1.8KB

  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: v2019-2-py3-debian-9
  16. - INSTANCE: v2019-2-py3-ubuntu-1804
  17. - INSTANCE: v2019-2-py2-centos-7
  18. - INSTANCE: v2019-2-py2-fedora-29
  19. - INSTANCE: v2018-3-py2-debian-8
  20. - INSTANCE: v2018-3-py2-ubuntu-1604
  21. - INSTANCE: v2018-3-py2-bootstrap-centos-6
  22. - INSTANCE: v2018-3-py2-forced-version-fedora-28
  23. - INSTANCE: v2018-3-py2-opensuse-423
  24. - INSTANCE: v2017-7-py2-debian-8
  25. - INSTANCE: v2017-7-py2-ubuntu-1604
  26. - INSTANCE: v2017-7-py2-bootstrap-centos-6
  27. script:
  28. - bundle exec kitchen verify ${INSTANCE}
  29. jobs:
  30. include:
  31. # Define the commitlint stage
  32. - stage: commitlint
  33. language: node_js
  34. node_js: lts/*
  35. before_install: skip
  36. script:
  37. - npm install @commitlint/config-conventional -D
  38. - npm install @commitlint/travis-cli -D
  39. - commitlint-travis
  40. # Define the release stage that runs semantic-release
  41. - stage: release
  42. language: node_js
  43. node_js: lts/*
  44. before_install: skip
  45. script:
  46. # Update `AUTHORS.md`
  47. - export MAINTAINER_TOKEN=${GH_TOKEN}
  48. - go get github.com/myii/maintainer
  49. - maintainer contributor
  50. # Install all dependencies required for `semantic-release`
  51. - npm install @semantic-release/changelog@3 -D
  52. - npm install @semantic-release/exec@3 -D
  53. - npm install @semantic-release/git@7 -D
  54. deploy:
  55. provider: script
  56. skip_cleanup: true
  57. script:
  58. # Run `semantic-release`
  59. - npx semantic-release@15