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.

78 line
2.2KB

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