Saltstack Official PHP Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

87 linhas
2.8KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. stages:
  5. - test
  6. - lint
  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: debian-debian-10-develop-py3
  20. # - INSTANCE: ubuntu-ubuntu-1804-develop-py3
  21. # - INSTANCE: redhat-centos-7-develop-py3
  22. # - INSTANCE: redhat-fedora-30-develop-py3
  23. # - INSTANCE: suse-opensuse-leap-15-develop-py3
  24. # - INSTANCE: redhat-amazonlinux-2-develop-py2
  25. # - INSTANCE: debian-debian-9-2019-2-py3
  26. - INSTANCE: ubuntu-ubuntu-1804-2019-2-py3
  27. # - INSTANCE: redhat-centos-7-2019-2-py3
  28. # - INSTANCE: redhat-fedora-30-2019-2-py3
  29. # - INSTANCE: suse-opensuse-leap-15-2019-2-py3
  30. - INSTANCE: redhat-amazonlinux-2-2019-2-py2
  31. # - INSTANCE: debian-debian-9-2018-3-py2
  32. # - INSTANCE: ubuntu-ubuntu-1604-2018-3-py2
  33. # - INSTANCE: redhat-centos-7-2018-3-py2
  34. - INSTANCE: redhat-fedora-29-2018-3-py2
  35. - INSTANCE: suse-opensuse-leap-15-2018-3-py2
  36. # - INSTANCE: redhat-amazonlinux-2-2018-3-py2
  37. # - INSTANCE: debian-debian-8-2017-7-py2
  38. # - INSTANCE: ubuntu-ubuntu-1604-2017-7-py2
  39. - INSTANCE: redhat-centos-6-2017-7-py2
  40. # - INSTANCE: redhat-fedora-29-2017-7-py2
  41. # - INSTANCE: suse-opensuse-leap-15-2017-7-py2
  42. # - INSTANCE: redhat-amazonlinux-2-2017-7-py2
  43. script:
  44. - bin/kitchen verify ${INSTANCE}
  45. jobs:
  46. include:
  47. # Define the `lint` stage (runs `yamllint` and `commitlint`)
  48. - stage: lint
  49. language: node_js
  50. node_js: lts/*
  51. before_install: skip
  52. script:
  53. # Install and run `yamllint`
  54. - pip install --user yamllint
  55. # yamllint disable-line rule:line-length
  56. - yamllint -s . .yamllint pillar.example test/salt/pillar/debian.sls test/salt/pillar/ubuntu.sls test/salt/pillar/redhat.sls test/salt/pillar/suse.sls
  57. # Install and run `commitlint`
  58. - npm install @commitlint/config-conventional -D
  59. - npm install @commitlint/travis-cli -D
  60. - commitlint-travis
  61. # Define the release stage that runs `semantic-release`
  62. - stage: release
  63. language: node_js
  64. node_js: lts/*
  65. before_install: skip
  66. script:
  67. # Update `AUTHORS.md`
  68. - export MAINTAINER_TOKEN=${GH_TOKEN}
  69. - go get github.com/myii/maintainer
  70. - maintainer contributor
  71. # Install all dependencies required for `semantic-release`
  72. - npm install @semantic-release/changelog@3 -D
  73. - npm install @semantic-release/exec@3 -D
  74. - npm install @semantic-release/git@7 -D
  75. deploy:
  76. provider: script
  77. skip_cleanup: true
  78. script:
  79. # Run `semantic-release`
  80. - npx semantic-release@15