1+ {% metadata_file .yamato/config.metadata %}
2+ ---
3+
4+ {% for editor in editors %}
5+ {% for platform in platforms %}
6+ promotion_test_{{ platform.name }}_{{ editor.version }} :
7+ name : Promotion Test {{ editor.version }} on {{ platform.name }}
8+ agent :
9+ type : {{ platform.type }}
10+ image : {{ platform.image }}
11+ flavor : {{ platform.flavor}}
12+ variables :
13+ UPMCI_PROMOTION : 1
14+ commands :
15+ - mv ./Assets/Samples ./Packages/com.unity.inputsystem
16+ - mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
17+ - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
18+ - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
19+ - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
20+ {% if platform.installscript %}
21+ - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
22+ - {{ platform.installscript }} {{ editor.version }}
23+ {% endif %}
24+ - upm-ci~/tools/utr/utr --testproject . --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode --api-profile=NET_4_6 --stdout-filter=minimal {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %}
25+ artifacts :
26+ logs :
27+ paths :
28+ - " upm-ci~/test-results/**/*"
29+ {% endfor %}
30+ {% endfor %}
31+
132promote :
233 name : Promote to Production
334 agent :
@@ -17,4 +48,8 @@ promote:
1748 paths :
1849 - " upm-ci~/**/*"
1950 dependencies :
20- - .yamato/upm-ci.yml#all_tests
51+ {% for editor in editors %}
52+ {% for platform in platforms %}
53+ - .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
54+ {% endfor %}
55+ {% endfor %}
0 commit comments