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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. stages:
  2. - test
  3. - commitlint
  4. - name: release
  5. if: branch = master AND type != pull_request
  6. sudo: required
  7. cache: bundler
  8. language: ruby
  9. services:
  10. - docker
  11. # Make sure the instances listed below match up with
  12. # the `platforms` defined in `kitchen.yml`
  13. # NOTE: Please try to select up to six instances that add some meaningful
  14. # testing of the formula's behaviour. If possible, try to refrain from
  15. # the classical "chosing all the instances because I want to test on
  16. # another/all distro/s" trap: it will just add time to the testing (see
  17. # the discussion on #121). As an example, the set chosen below covers
  18. # the most used distros families, systemd and non-systemd and the latest
  19. # three supported Saltstack versions with python2 and 3."
  20. # As for `kitchen.yml`, that should still contain all of the platforms,
  21. # to allow for comprehensive local testing
  22. # Ref: https://github.com/saltstack-formulas/template-formula/issues/118
  23. # Ref: https://github.com/saltstack-formulas/template-formula/issues/121
  24. env:
  25. matrix:
  26. - INSTANCE: default-debian-9-develop-py3
  27. # - INSTANCE: default-ubuntu-1804-develop-py3
  28. # - INSTANCE: default-centos-7-develop-py3
  29. # - INSTANCE: default-fedora-29-develop-py3
  30. # - INSTANCE: default-opensuse-leap-15-develop-py3
  31. # - INSTANCE: default-debian-9-2019-2-py3
  32. - INSTANCE: default-ubuntu-1804-2019-2-py3
  33. - INSTANCE: default-centos-7-2019-2-py3
  34. # - INSTANCE: default-fedora-29-2019-2-py3
  35. # - INSTANCE: default-opensuse-leap-15-2019-2-py3
  36. # - INSTANCE: default-debian-9-2018-3-py2
  37. # - INSTANCE: default-ubuntu-1604-2018-3-py2
  38. # - INSTANCE: default-centos-7-2018-3-py2
  39. - INSTANCE: default-fedora-29-2018-3-py2
  40. # TODO: Use this when fixed instead of `opensuse-leap-42`
  41. # Ref: https://github.com/netmanagers/salt-image-builder/issues/2
  42. # - INSTANCE: default-opensuse-leap-15-2018-3-py2
  43. - INSTANCE: default-opensuse-leap-42-2018-3-py2
  44. # - INSTANCE: default-debian-8-2017-7-py2
  45. # - INSTANCE: default-ubuntu-1604-2017-7-py2
  46. # TODO: Enable after improving the formula to work with other than `systemd`
  47. - INSTANCE: default-centos-6-2017-7-py2
  48. # - INSTANCE: default-fedora-28-2017-7-py2
  49. # - INSTANCE: default-opensuse-leap-42-2017-7-py2
  50. script:
  51. - bundle exec kitchen verify ${INSTANCE}
  52. jobs:
  53. include:
  54. # Define the commitlint stage
  55. - stage: commitlint
  56. language: node_js
  57. node_js: lts/*
  58. before_install: skip
  59. script:
  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