Saltstack Official UFW Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

122 lines
4.3KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. ## Machine config
  5. dist: trusty
  6. version: '~> 1.0'
  7. sudo: required
  8. services:
  9. - docker
  10. ## Language and cache config
  11. language: ruby
  12. cache: bundler
  13. ## Script to run for the test stage
  14. script:
  15. - bin/kitchen verify "${INSTANCE}"
  16. ## Stages and jobs matrix
  17. stages:
  18. - test
  19. - name: release
  20. if: branch = master AND type != pull_request
  21. jobs:
  22. allow_failures:
  23. - env: Lint_rubocop
  24. fast_finish: true
  25. include:
  26. ## Define the test stage that runs the linters (and testing matrix, if applicable)
  27. # Run all of the linters in a single job (except `rubocop`)
  28. - language: node_js
  29. node_js: lts/*
  30. env: Lint
  31. name: 'Lint: salt-lint, yamllint & commitlint'
  32. before_install: skip
  33. script:
  34. # Need to use `pip3` due to using `trusty` on Travis
  35. # [Py2/InsecurePlatformWarning] Tornado requires an up-to-date SSL module.
  36. - sudo apt-get install python3-pip python3-setuptools python3-wheel -y
  37. # Install and run `salt-lint`
  38. - pip3 install --user salt-lint
  39. - git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
  40. | xargs salt-lint
  41. # Install and run `yamllint`
  42. # Need at least `v1.17.0` for the `yaml-files` setting
  43. - pip3 install --user yamllint>=1.17.0
  44. - yamllint -s .
  45. # Install and run `commitlint`
  46. - npm i -D @commitlint/config-conventional
  47. @commitlint/travis-cli
  48. - commitlint-travis
  49. # Run the `rubocop` linter in a separate job that is allowed to fail
  50. # Once these lint errors are fixed, this can be merged into a single job
  51. - language: node_js
  52. node_js: lts/*
  53. env: Lint_rubocop
  54. name: 'Lint: rubocop'
  55. before_install: skip
  56. script:
  57. # Install and run `rubocop`
  58. - gem install rubocop
  59. - rubocop -d
  60. ## Define the rest of the matrix based on Kitchen testing
  61. # Make sure the instances listed below match up with
  62. # the `platforms` defined in `kitchen.yml`
  63. # - env: INSTANCE=default-debian-10-master-py3
  64. - env: INSTANCE=default-ubuntu-1804-master-py3
  65. # - env: INSTANCE=default-centos-8-master-py3
  66. # - env: INSTANCE=default-fedora-31-master-py3
  67. # - env: INSTANCE=default-opensuse-leap-151-master-py3
  68. # - env: INSTANCE=default-amazonlinux-2-master-py2
  69. # - env: INSTANCE=default-arch-base-latest-master-py2
  70. # - env: INSTANCE=default-debian-10-2019-2-py3
  71. # - env: INSTANCE=default-debian-9-2019-2-py3
  72. # - env: INSTANCE=default-ubuntu-1804-2019-2-py3
  73. # - env: INSTANCE=default-centos-8-2019-2-py3
  74. # - env: INSTANCE=default-fedora-31-2019-2-py3
  75. # - env: INSTANCE=default-opensuse-leap-151-2019-2-py3
  76. # - env: INSTANCE=default-centos-7-2019-2-py2
  77. # - env: INSTANCE=default-amazonlinux-2-2019-2-py2
  78. # - env: INSTANCE=default-arch-base-latest-2019-2-py2
  79. - env: INSTANCE=default-fedora-30-2018-3-py3
  80. # - env: INSTANCE=default-debian-9-2018-3-py2
  81. # - env: INSTANCE=default-ubuntu-1604-2018-3-py2
  82. # - env: INSTANCE=default-centos-7-2018-3-py2
  83. - env: INSTANCE=default-opensuse-leap-151-2018-3-py2
  84. # - env: INSTANCE=default-amazonlinux-2-2018-3-py2
  85. - env: INSTANCE=default-arch-base-latest-2018-3-py2
  86. # - env: INSTANCE=default-debian-8-2017-7-py2
  87. - env: INSTANCE=default-ubuntu-1604-2017-7-py2
  88. # - env: INSTANCE=default-centos-6-2017-7-py2
  89. # - env: INSTANCE=default-fedora-30-2017-7-py2
  90. # - env: INSTANCE=default-opensuse-leap-151-2017-7-py2
  91. # - env: INSTANCE=default-amazonlinux-2-2017-7-py2
  92. # - env: INSTANCE=default-arch-base-latest-2017-7-py2
  93. ## Define the release stage that runs `semantic-release`
  94. - stage: release
  95. language: node_js
  96. node_js: lts/*
  97. env: Release
  98. name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
  99. before_install: skip
  100. script:
  101. # Update `AUTHORS.md`
  102. - export MAINTAINER_TOKEN=${GH_TOKEN}
  103. - go get github.com/myii/maintainer
  104. - maintainer contributor
  105. # Install all dependencies required for `semantic-release`
  106. - npm i -D @semantic-release/changelog@3
  107. @semantic-release/exec@3
  108. @semantic-release/git@7
  109. deploy:
  110. provider: script
  111. skip_cleanup: true
  112. script:
  113. # Run `semantic-release`
  114. - npx semantic-release@15