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

93 lines
2.6KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. dist: bionic
  5. stages:
  6. - test
  7. - lint
  8. - name: release
  9. if: branch = master AND type != pull_request
  10. sudo: required
  11. cache: bundler
  12. language: ruby
  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. # The ordering used below has been selected based on the time required in Travis
  20. # The slower ones are kept as high up as possible, to run concurrently rather than
  21. # slow down the entire run at the end (i.e. `centos-6` and `opensuse`)
  22. # However, the groupings needed to be maintained in some semblance of order
  23. # so this is a best-effort matrix, in the circumstances
  24. # develop-py3
  25. - INSTANCE: develop-py3-debian-9
  26. - INSTANCE: develop-py3-opensuse-150
  27. # - INSTANCE: develop-py3-ubuntu-1804
  28. # 2017.7-py2
  29. - INSTANCE: v2017-7-py2-bootstrap-centos-6
  30. # - INSTANCE: v2017-7-py2-debian-8
  31. - INSTANCE: v2017-7-py2-ubuntu-1604
  32. # 2018.3-py2
  33. # - INSTANCE: v2018-3-py2-centos-7
  34. - INSTANCE: v2018-3-py2-debian-8
  35. - INSTANCE: v2018-3-py2-forced-version-fedora-29
  36. # - INSTANCE: v2018-3-py2-ubuntu-1604
  37. # 2019.2-py2
  38. - INSTANCE: v2019-2-py2-centos-7
  39. - INSTANCE: v2019-2-py2-fedora-30
  40. # 2019.2-py3
  41. # - INSTANCE: v2019-2-py3-debian-9
  42. - INSTANCE: v2019-2-py3-opensuse-150
  43. - INSTANCE: v2019-2-py3-ubuntu-1804
  44. script:
  45. - bin/kitchen verify ${INSTANCE}
  46. jobs:
  47. include:
  48. # Define the `lint` stage (runs `yamllint` and `commitlint`)
  49. - stage: lint
  50. language: node_js
  51. node_js: lts/*
  52. before_install: skip
  53. script:
  54. # Install and run `yamllint`
  55. # Need at least `v1.17.0` for the `yaml-files` setting
  56. - pip install --user yamllint>=1.17.0
  57. - yamllint -s .
  58. # Install and run `commitlint`
  59. - npm install @commitlint/config-conventional -D
  60. - npm install @commitlint/travis-cli -D
  61. - commitlint-travis
  62. # Define the release stage that runs `semantic-release`
  63. - stage: release
  64. language: node_js
  65. node_js: lts/*
  66. before_install: skip
  67. script:
  68. # Update `AUTHORS.md`
  69. - export MAINTAINER_TOKEN=${GH_TOKEN}
  70. - go get github.com/myii/maintainer
  71. - maintainer contributor
  72. # Install all dependencies required for `semantic-release`
  73. - npm install @semantic-release/changelog@3 -D
  74. - npm install @semantic-release/exec@3 -D
  75. - npm install @semantic-release/git@7 -D
  76. deploy:
  77. provider: script
  78. skip_cleanup: true
  79. script:
  80. # Run `semantic-release`
  81. - npx semantic-release@15