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

72 lines
2.2KB

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