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

73 lines
2.5KB

  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. # NOTE: Please try to select up to six instances that add some meaningful
  14. # testing of the formula's behaviour. If possible, try to refrain from
  15. # the classical "chosing all the instances because I want to test on
  16. # another/all distro/s" trap: it will just add time to the testing (see
  17. # the discussion on #121). As an example, the set chosen below covers
  18. # the most used distros families, systemd and non-systemd and the latest
  19. # three supported Saltstack versions with python2 and 3."
  20. # As for `kitchen.yml`, that should still contain all of the platforms,
  21. # to allow for comprehensive local testing
  22. # Ref: https://github.com/saltstack-formulas/template-formula/issues/118
  23. # Ref: https://github.com/saltstack-formulas/template-formula/issues/121
  24. env:
  25. matrix:
  26. - INSTANCE: repositories-debian-9-develop-py3
  27. # - INSTANCE: repositories-ubuntu-1804-develop-py3
  28. - INSTANCE: repositories-debian-9-2019-2-py3
  29. - INSTANCE: repositories-ubuntu-1804-2019-2-py3
  30. - INSTANCE: preferences-debian-9-develop-py3
  31. # - INSTANCE: preferences-ubuntu-1804-develop-py3
  32. - INSTANCE: preferences-debian-9-2019-2-py3
  33. - INSTANCE: preferences-ubuntu-1804-2019-2-py3
  34. script:
  35. - bundle exec kitchen verify ${INSTANCE}
  36. jobs:
  37. include:
  38. # Define the commitlint stage
  39. - stage: commitlint
  40. language: node_js
  41. node_js: lts/*
  42. before_install: skip
  43. script:
  44. - npm install @commitlint/config-conventional -D
  45. - npm install @commitlint/travis-cli -D
  46. - commitlint-travis
  47. # Define the release stage that runs semantic-release
  48. - stage: release
  49. language: node_js
  50. node_js: lts/*
  51. before_install: skip
  52. script:
  53. # Update `AUTHORS.md`
  54. - export MAINTAINER_TOKEN=${GH_TOKEN}
  55. - go get github.com/myii/maintainer
  56. - maintainer contributor
  57. # Install all dependencies required for `semantic-release`
  58. - npm install @semantic-release/changelog@3 -D
  59. - npm install @semantic-release/exec@3 -D
  60. - npm install @semantic-release/git@7 -D
  61. deploy:
  62. provider: script
  63. skip_cleanup: true
  64. script:
  65. # Run `semantic-release`
  66. - npx semantic-release@15