Saltstack Official Salt Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

89 lines
3.0KB

  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. # - INSTANCE: v201707-py2-debian-8-2017-7-py2
  25. - INSTANCE: v201707-py2-ubuntu-1604-2017-7-py2
  26. - INSTANCE: v201707-py2-centos-6-2017-7-py2
  27. # - INSTANCE: v201707-py2-amazonlinux-2-2017-7-py2
  28. # - INSTANCE: v201707-py2-arch-base-latest-2017-7-py2
  29. # - INSTANCE: v201803-py2-debian-9-2018-3-py2
  30. # - INSTANCE: v201803-py2-ubuntu-1604-2018-3-py2
  31. - INSTANCE: v201803-py2-centos-7-2018-3-py2
  32. - INSTANCE: v201803-py2-amazonlinux-2-2018-3-py2
  33. # - INSTANCE: v201803-py2-arch-base-latest-2018-3-py2
  34. - INSTANCE: v201902-py2-debian-9-2019-2-py2
  35. - INSTANCE: v201902-py2-ubuntu-1804-2019-2-py2
  36. # - INSTANCE: v201902-py2-centos-7-2019-2-py2
  37. # - INSTANCE: v201902-py2-opensuse-leap-15-2019-2-py2
  38. # - INSTANCE: v201902-py2-amazonlinux-2-2019-2-py2
  39. # - INSTANCE: v201902-py2-arch-base-latest-2019-2-py2
  40. # - INSTANCE: v201902-py3-debian-9-2019-2-py3
  41. # - INSTANCE: v201902-py3-ubuntu-1804-2019-2-py3
  42. # - INSTANCE: v201902-py3-centos-7-2019-2-py3
  43. - INSTANCE: v201902-py3-fedora-30-2019-2-py3
  44. - INSTANCE: v201902-py3-opensuse-leap-15-2019-2-py3
  45. script:
  46. - bin/kitchen verify ${INSTANCE}
  47. jobs:
  48. include:
  49. # Define the `lint` stage (runs `yamllint` and `commitlint`)
  50. - stage: lint
  51. language: node_js
  52. node_js: lts/*
  53. before_install: skip
  54. script:
  55. # Install and run `yamllint`
  56. # Need at least `v1.17.0` for the `yaml-files` setting
  57. - pip install --user yamllint>=1.17.0
  58. - yamllint -s .
  59. # Install and run `commitlint`
  60. - npm install @commitlint/config-conventional -D
  61. - npm install @commitlint/travis-cli -D
  62. - commitlint-travis
  63. # Define the release stage that runs `semantic-release`
  64. - stage: release
  65. language: node_js
  66. node_js: lts/*
  67. before_install: skip
  68. script:
  69. # Update `AUTHORS.md`
  70. - export MAINTAINER_TOKEN=${GH_TOKEN}
  71. - go get github.com/myii/maintainer
  72. - maintainer contributor
  73. # Install all dependencies required for `semantic-release`
  74. - npm install @semantic-release/changelog@3 -D
  75. - npm install @semantic-release/exec@3 -D
  76. - npm install @semantic-release/git@7 -D
  77. deploy:
  78. provider: script
  79. skip_cleanup: true
  80. script:
  81. # Run `semantic-release`
  82. - npx semantic-release@15