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.

63 lines
1.7KB

  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. dist: xenial
  10. services:
  11. - docker
  12. # Make sure the instances listed below match up with
  13. # the `platforms` defined in `kitchen.yml`
  14. env:
  15. matrix:
  16. - INSTANCE: repositories-debian-9-develop-py3
  17. - INSTANCE: preferences-debian-9-develop-py3
  18. # - INSTANCE: repositories-ubuntu-1804-develop-py3
  19. # - INSTANCE: preferences-ubuntu-1804-develop-py3
  20. - INSTANCE: repositories-debian-9-2019-2-py3
  21. - INSTANCE: preferences-debian-9-2019-2-py3
  22. - INSTANCE: repositories-ubuntu-1804-2019-2-py3
  23. - INSTANCE: preferences-ubuntu-1804-2019-2-py3
  24. script:
  25. - bin/kitchen verify ${INSTANCE}
  26. jobs:
  27. include:
  28. # Define the commitlint stage
  29. - stage: commitlint
  30. language: node_js
  31. node_js: lts/*
  32. before_install: skip
  33. script:
  34. - npm install @commitlint/config-conventional -D
  35. - npm install @commitlint/travis-cli -D
  36. - commitlint-travis
  37. # Define the release stage that runs semantic-release
  38. - stage: release
  39. language: node_js
  40. node_js: lts/*
  41. before_install: skip
  42. script:
  43. # Update `AUTHORS.md`
  44. - export MAINTAINER_TOKEN=${GH_TOKEN}
  45. - go get github.com/myii/maintainer
  46. - maintainer contributor
  47. # Install all dependencies required for `semantic-release`
  48. - npm install @semantic-release/changelog@3 -D
  49. - npm install @semantic-release/exec@3 -D
  50. - npm install @semantic-release/git@7 -D
  51. deploy:
  52. provider: script
  53. skip_cleanup: true
  54. script:
  55. # Run `semantic-release`
  56. - npx semantic-release@15