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.

91 lines
3.4KB

  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. # Disable tests on Salt develop for now
  27. # See: https://travis-ci.com/saltstack-formulas/php-formula/jobs/211316835
  28. # - INSTANCE: default-debian-9-develop-py3
  29. # - INSTANCE: default-ubuntu-1804-develop-py3
  30. # - INSTANCE: default-centos-7-develop-py3
  31. # - INSTANCE: default-fedora-29-develop-py3
  32. # - INSTANCE: default-opensuse-leap-15-develop-py3
  33. # - INSTANCE: default-debian-9-2019-2-py3
  34. - INSTANCE: default-ubuntu-1804-2019-2-py3
  35. - INSTANCE: default-centos-7-2019-2-py3
  36. # - INSTANCE: default-fedora-29-2019-2-py3
  37. # - INSTANCE: default-opensuse-leap-15-2019-2-py3
  38. # - INSTANCE: default-debian-9-2018-3-py2
  39. # - INSTANCE: default-ubuntu-1604-2018-3-py2
  40. # - INSTANCE: default-centos-7-2018-3-py2
  41. - INSTANCE: default-fedora-29-2018-3-py2
  42. # TODO: Use this when fixed instead of `opensuse-leap-42`
  43. # Ref: https://github.com/netmanagers/salt-image-builder/issues/2
  44. # - INSTANCE: default-opensuse-leap-15-2018-3-py2
  45. - INSTANCE: default-opensuse-leap-42-2018-3-py2
  46. # - INSTANCE: default-debian-8-2017-7-py2
  47. # - INSTANCE: default-ubuntu-1604-2017-7-py2
  48. # TODO: Enable after improving the formula to work with other than `systemd`
  49. - INSTANCE: default-centos-6-2017-7-py2
  50. # - INSTANCE: default-fedora-28-2017-7-py2
  51. # - INSTANCE: default-opensuse-leap-42-2017-7-py2
  52. script:
  53. - bundle exec kitchen verify ${INSTANCE}
  54. jobs:
  55. include:
  56. # Define the commitlint stage
  57. - stage: commitlint
  58. language: node_js
  59. node_js: lts/*
  60. before_install: skip
  61. script:
  62. - npm install @commitlint/config-conventional -D
  63. - npm install @commitlint/travis-cli -D
  64. - commitlint-travis
  65. # Define the release stage that runs semantic-release
  66. - stage: release
  67. language: node_js
  68. node_js: lts/*
  69. before_install: skip
  70. script:
  71. # Update `AUTHORS.md`
  72. - export MAINTAINER_TOKEN=${GH_TOKEN}
  73. - go get github.com/myii/maintainer
  74. - maintainer contributor
  75. # Install all dependencies required for `semantic-release`
  76. - npm install @semantic-release/changelog@3 -D
  77. - npm install @semantic-release/exec@3 -D
  78. - npm install @semantic-release/git@7 -D
  79. deploy:
  80. provider: script
  81. skip_cleanup: true
  82. script:
  83. # Run `semantic-release`
  84. - npx semantic-release@15