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

71 lines
2.0KB

  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: repositories-debian-9-develop-py3
  20. - INSTANCE: preferences-debian-9-develop-py3
  21. # - INSTANCE: repositories-ubuntu-1804-develop-py3
  22. # - INSTANCE: preferences-ubuntu-1804-develop-py3
  23. - INSTANCE: repositories-debian-9-2019-2-py3
  24. - INSTANCE: preferences-debian-9-2019-2-py3
  25. - INSTANCE: repositories-ubuntu-1804-2019-2-py3
  26. - INSTANCE: preferences-ubuntu-1804-2019-2-py3
  27. script:
  28. - bin/kitchen verify ${INSTANCE}
  29. jobs:
  30. include:
  31. # Define the `lint` stage (runs `yamllint` and `commitlint`)
  32. - stage: lint
  33. language: node_js
  34. node_js: lts/*
  35. before_install: skip
  36. script:
  37. # Install and run `yamllint`
  38. - pip install --user yamllint
  39. # yamllint disable-line rule:line-length
  40. - yamllint -s . .yamllint pillar.example test/salt/pillar/repositories.pillar.sls test/salt/pillar/preferences.pillar.sls
  41. # Install and run `commitlint`
  42. - npm install @commitlint/config-conventional -D
  43. - npm install @commitlint/travis-cli -D
  44. - commitlint-travis
  45. # Define the release stage that runs `semantic-release`
  46. - stage: release
  47. language: node_js
  48. node_js: lts/*
  49. before_install: skip
  50. script:
  51. # Update `AUTHORS.md`
  52. - export MAINTAINER_TOKEN=${GH_TOKEN}
  53. - go get github.com/myii/maintainer
  54. - maintainer contributor
  55. # Install all dependencies required for `semantic-release`
  56. - npm install @semantic-release/changelog@3 -D
  57. - npm install @semantic-release/exec@3 -D
  58. - npm install @semantic-release/git@7 -D
  59. deploy:
  60. provider: script
  61. skip_cleanup: true
  62. script:
  63. # Run `semantic-release`
  64. - npx semantic-release@15