test.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {% metadata_file .yamato/project.metafile %}
  2. ---
  3. {% for editor in blocking_test_editors %}
  4. {% for platform in test_platforms %}
  5. test_{{ platform.name }}_{{ editor.version }}:
  6. name : Test {{ editor.version }} on {{ platform.name }}
  7. agent:
  8. type: {{ platform.type }}
  9. image: {{ platform.image }}
  10. flavor: {{ platform.flavor}}
  11. commands:
  12. - npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
  13. - upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages"
  14. artifacts:
  15. logs:
  16. paths:
  17. - "upm-ci~/test-results/**/*"
  18. dependencies:
  19. - .yamato/pack.yml#pack
  20. {% endfor %}
  21. {% endfor %}
  22. {% for editor in nonblocking_test_editors %}
  23. {% for platform in test_platforms %}
  24. test_{{ platform.name }}_{{ editor.version }}:
  25. name : Test {{ editor.version }} on {{ platform.name }}
  26. agent:
  27. type: {{ platform.type }}
  28. image: {{ platform.image }}
  29. flavor: {{ platform.flavor}}
  30. commands:
  31. - npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
  32. - upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages"
  33. artifacts:
  34. logs:
  35. paths:
  36. - "upm-ci~/test-results/**/*"
  37. dependencies:
  38. - .yamato/pack.yml#pack
  39. {% endfor %}
  40. {% endfor %}
  41. # Validate the package on each editor version and each platform
  42. # Validation only occurs in editmode.
  43. {% for editor in blocking_test_editors %}
  44. {% for platform in test_platforms %}
  45. validate_{{ platform.name }}_{{ editor.version }}:
  46. name : Validate {{ editor.version }} on {{ platform.name }}
  47. agent:
  48. type: {{ platform.type }}
  49. image: {{ platform.image }}
  50. flavor: {{ platform.flavor}}
  51. commands:
  52. - npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
  53. - upm-ci package test -u {{ editor.version }} --package-path . --type vetting-tests --platform editmode --extra-create-project-arg="-upmNoDefaultPackages"
  54. artifacts:
  55. logs:
  56. paths:
  57. - "upm-ci~/test-results/**/*"
  58. dependencies:
  59. - .yamato/pack.yml#pack
  60. {% endfor %}
  61. {% endfor %}
  62. test_trigger:
  63. name: Tests Trigger
  64. triggers:
  65. branches:
  66. only:
  67. - "main"
  68. pull_requests:
  69. - targets:
  70. only:
  71. - "/.*/"
  72. dependencies:
  73. - .yamato/pack.yml#pack
  74. {% for editor in blocking_test_editors %}
  75. {% for platform in test_platforms %}
  76. - .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
  77. - .yamato/test.yml#validate_{{platform.name}}_{{editor.version}}
  78. {% endfor %}
  79. {% endfor %}
  80. {% for editor in nonblocking_test_editors %}
  81. {% for platform in test_platforms %}
  82. - .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
  83. {% endfor %}
  84. {% endfor %}