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

82 lines
2.5KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. stages:
  5. - test
  6. - commitlint
  7. - name: release
  8. if: branch = master AND type != pull_request
  9. sudo: required
  10. cache: bundler
  11. language: ruby
  12. dist: xenial
  13. services:
  14. - docker
  15. # Make sure the instances listed below match up with
  16. # the `platforms` defined in `kitchen.yml`
  17. env:
  18. matrix:
  19. - INSTANCE: default-debian-10-develop-py3
  20. # - INSTANCE: default-ubuntu-1804-develop-py3
  21. # - INSTANCE: default-centos-7-develop-py3
  22. # - INSTANCE: default-fedora-30-develop-py3
  23. # - INSTANCE: default-opensuse-leap-15-develop-py3
  24. # - INSTANCE: default-amazonlinux-2-develop-py2
  25. # - INSTANCE: default-debian-9-2019-2-py3
  26. - INSTANCE: default-ubuntu-1804-2019-2-py3
  27. # - INSTANCE: default-centos-7-2019-2-py3
  28. # - INSTANCE: default-fedora-30-2019-2-py3
  29. # - INSTANCE: default-opensuse-leap-15-2019-2-py3
  30. - INSTANCE: default-amazonlinux-2-2019-2-py2
  31. # - INSTANCE: default-debian-9-2018-3-py2
  32. # - INSTANCE: default-ubuntu-1604-2018-3-py2
  33. # - INSTANCE: default-centos-7-2018-3-py2
  34. - INSTANCE: default-fedora-29-2018-3-py2
  35. - INSTANCE: default-opensuse-leap-15-2018-3-py2
  36. # - INSTANCE: default-amazonlinux-2-2018-3-py2
  37. # - INSTANCE: default-debian-8-2017-7-py2
  38. # - INSTANCE: default-ubuntu-1604-2017-7-py2
  39. - INSTANCE: default-centos-6-2017-7-py2
  40. # - INSTANCE: default-fedora-29-2017-7-py2
  41. # - INSTANCE: default-opensuse-leap-15-2017-7-py2
  42. # - INSTANCE: default-amazonlinux-2-2017-7-py2
  43. script:
  44. - bin/kitchen verify ${INSTANCE}
  45. jobs:
  46. include:
  47. # Define the commitlint stage
  48. - stage: commitlint
  49. language: node_js
  50. node_js: lts/*
  51. before_install: skip
  52. script:
  53. - npm install @commitlint/config-conventional -D
  54. - npm install @commitlint/travis-cli -D
  55. - commitlint-travis
  56. # Define the release stage that runs semantic-release
  57. - stage: release
  58. language: node_js
  59. node_js: lts/*
  60. before_install: skip
  61. script:
  62. # Update `AUTHORS.md`
  63. - export MAINTAINER_TOKEN=${GH_TOKEN}
  64. - go get github.com/myii/maintainer
  65. - maintainer contributor
  66. # Install all dependencies required for `semantic-release`
  67. - npm install @semantic-release/changelog@3 -D
  68. - npm install @semantic-release/exec@3 -D
  69. - npm install @semantic-release/git@7 -D
  70. deploy:
  71. provider: script
  72. skip_cleanup: true
  73. script:
  74. # Run `semantic-release`
  75. - npx semantic-release@15