promote.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% metadata_file .yamato/project.metafile %}
  2. ---
  3. {% for editor in blocking_test_editors %}
  4. {% for platform in test_platforms %}
  5. promotion_test_{{ platform.name }}_{{ editor.version }}:
  6. name : Promotion Test {{ editor.version }} on {{ platform.name }}
  7. agent:
  8. type: {{ platform.type }}
  9. image: {{ platform.image }}
  10. flavor: {{ platform.flavor}}
  11. variables:
  12. UPMCI_PROMOTION: 1
  13. commands:
  14. - npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
  15. - upm-ci package test --unity-version {{ editor.version }} --package-path .
  16. artifacts:
  17. logs:
  18. paths:
  19. - "upm-ci~/test-results/**/*"
  20. dependencies:
  21. - .yamato/pack.yml#pack
  22. {% endfor %}
  23. {% endfor %}
  24. promotion_test_trigger:
  25. name: Promotion Tests Trigger
  26. dependencies:
  27. {% for editor in blocking_test_editors %}
  28. {% for platform in test_platforms %}
  29. - .yamato/promote.yml#promotion_test_{{platform.name}}_{{editor.version}}
  30. {% endfor %}
  31. {% endfor %}
  32. promote:
  33. name: Promote to Production
  34. agent:
  35. type: Unity::VM
  36. image: package-ci/win10:stable
  37. flavor: b1.large
  38. variables:
  39. UPMCI_PROMOTION: 1
  40. commands:
  41. - npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
  42. - upm-ci package promote --package-path .
  43. triggers:
  44. tags:
  45. only:
  46. - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
  47. artifacts:
  48. artifacts:
  49. paths:
  50. - "upm-ci~/packages/*.tgz"
  51. dependencies:
  52. - .yamato/pack.yml#pack
  53. {% for editor in blocking_test_editors %}
  54. {% for platform in test_platforms %}
  55. - .yamato/promote.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
  56. {% endfor %}
  57. {% endfor %}