Saltstack Official Apt Formula
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

69 líneas
2.3KB

  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-2019-2-py3
  27. - INSTANCE: repositories-ubuntu-1804-2019-2-py3
  28. - INSTANCE: preferences-debian-9-2019-2-py3
  29. - INSTANCE: preferences-ubuntu-1804-2019-2-py3
  30. script:
  31. - bundle exec kitchen verify ${INSTANCE}
  32. jobs:
  33. include:
  34. # Define the commitlint stage
  35. - stage: commitlint
  36. language: node_js
  37. node_js: lts/*
  38. before_install: skip
  39. script:
  40. - npm install @commitlint/config-conventional -D
  41. - npm install @commitlint/travis-cli -D
  42. - commitlint-travis
  43. # Define the release stage that runs semantic-release
  44. - stage: release
  45. language: node_js
  46. node_js: lts/*
  47. before_install: skip
  48. script:
  49. # Update `AUTHORS.md`
  50. - export MAINTAINER_TOKEN=${GH_TOKEN}
  51. - go get github.com/myii/maintainer
  52. - maintainer contributor
  53. # Install all dependencies required for `semantic-release`
  54. - npm install @semantic-release/changelog@3 -D
  55. - npm install @semantic-release/exec@3 -D
  56. - npm install @semantic-release/git@7 -D
  57. deploy:
  58. provider: script
  59. skip_cleanup: true
  60. script:
  61. # Run `semantic-release`
  62. - npx semantic-release@15