Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

86 lines
2.8KB

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