11editors :
2- - version : trunk
3- - version : fast-trunk
2+ - version : 2020.1
3+ rerun_strategy : on-new-revision
4+ - version : fast- 2020.1
5+ rerun_strategy : on-new-revision
6+ - version : CUSTOM-REVISION
7+ rerun_strategy : always
48platforms :
59 - name : Win
610 os : windows
711 type : Unity::VM::GPU
8- image : sdet/gamecode_win10:stable
12+ image : graphics-foundation/win10-dxr:latest
913 flavor : b1.large
1014 components :
1115 - editor
1216 - il2cpp
13- # - name: Linux
14- # type: Unity::VM::GPU
15- # image: cds-ops/ubuntu-18.04-base:stable
16- # flavor: b1.large
17- # Not sure if Linux supports DXR
1817testplatforms :
1918 - name : Standalone
2019 args : --suite=playmode --platform=Standalone
@@ -26,20 +25,73 @@ projects:
2625win_apis :
2726 - name : DX12
2827 cmd : -force-d3d12
29- # linux_apis:
30- # - name: OpenGLCore
31- # cmd: -force-glcore
32- # - name: Vulkan
33- # cmd: -force-vulkan
3428---
3529{% for project in projects %}
3630{% for editor in editors %}
3731{% for platform in platforms %}
3832
39- {% if platform.name == "Win" %}
40-
4133{% for testplatform in testplatforms %}
4234{% for win_api in win_apis %}
35+
36+ {% if testplatform.name == "Standalone" %}
37+ {{ project.name }}_Win_{{ win_api.name }}_{{ testplatform.name }}_{{ editor.version }}:
38+ name : Test {{ project.name }} on Win_{{ win_api.name }}_{{ testplatform.name }} on version {{ editor.version }}
39+ agent :
40+ flavor : b1.large
41+ type : Unity::VM::GPU
42+ model : rtx2080
43+ image : graphics-foundation/win10-dxr:latest
44+ skip_checkout : true
45+ variables :
46+ UPM_REGISTRY : https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
47+ {% if editor.version == 'CUSTOM-REVISION' %}
48+ CUSTOM_REVISION : custom_revision_not_set
49+ {% endif %}
50+ commands :
51+ -
git clone [email protected] :unity/utr.git TestProjects/{{ project.folder }}/utr 52+
53+ - cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }}Windows64 --artifacts_path=test-results --timeout=1200 --player-load-path=../../players --player-connection-ip=auto
54+ artifacts :
55+ logs :
56+ paths :
57+ - " **/test-results/**"
58+ dependencies :
59+ - path : .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
60+ rerun : {{ editor.rerun_strategy }}
61+ - path : .yamato/upm-ci-{{ project.name | downcase }}.yml#Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}
62+ rerun : {{ editor.rerun_strategy }}
63+
64+ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }} :
65+ name : Build {{ project.name }} on Win_{{ win_api.name }}_Player on version {{ editor.version }}
66+ agent :
67+ flavor : b1.xlarge
68+ type : Unity::VM
69+ image : graphics-foundation/win10-dxr:latest
70+ variables :
71+ UPM_REGISTRY : https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
72+ {% if editor.version == 'CUSTOM-REVISION' %}
73+ CUSTOM_REVISION : custom_revision_not_set
74+ {% endif %}
75+ commands :
76+ -
git clone [email protected] :unity/utr.git TestProjects/{{ project.folder }}/utr 77+ - pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
78+
79+ - cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only
80+
81+ - cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }}Windows64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildWindows{{ win_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=test-results --timeout=1200 --player-save-path=../../players --build-only
82+ dependencies :
83+ - path : .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
84+ rerun : {{ editor.rerun_strategy }}
85+ artifacts :
86+ logs :
87+ paths :
88+ - " **/test-results/**"
89+ players :
90+ paths :
91+ - " players/**"
92+
93+ {% else %}
94+
4395{{ project.name }}_Win_{{ win_api.name }}_{{ testplatform.name }}_{{ editor.version }}:
4496 name : {{ project.name }} on Win_{{ testplatform.name }}_{{ win_api.name }} on version {{ editor.version }}
4597 agent :
@@ -49,32 +101,30 @@ win_apis:
49101 flavor : {{ platform.flavor}}
50102 variables :
51103 UPM_REGISTRY : https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
104+ {% if editor.version == 'CUSTOM-REVISION' %}
105+ CUSTOM_REVISION : custom_revision_not_set
106+ {% endif %}
52107 commands :
53108 -
git clone [email protected] :unity/utr.git TestProjects/{{ project.folder }}/utr 54109 - pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade
55110 - cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only
56111
57- {% if testplatform.name == "Standalone" %}
58- - cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }}Windows64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildWindows{{ win_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results --timeout=1200
59- {% else %}
60112 - cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }} --extra-editor-arg="{{ win_api.cmd }}" --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results
61- {% endif %}
62113 dependencies :
63114 - .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
64115 artifacts :
65116 logs :
66117 paths :
67118 - " **/test-results/**"
68- {% endfor %}
69- {% endfor %}
70119
71- {% endif %}
120+ {% endif %} # standalone
121+ {% endfor %} # win api
122+ {% endfor %} # testplatform
72123
73- {% endfor %}
74- {% endfor %}
124+ {% endfor %} # platform
75125
76- All_{{ project.name }} :
77- name : All {{ project.name }} CI
126+ All_{{ project.name }}_{{ editor.version }} :
127+ name : All {{ project.name }} CI - {{ editor.version }}
78128 agent :
79129 type : Unity::VM
80130 image : cds-ops/ubuntu-18.04-agent:stable
@@ -89,9 +139,10 @@ All_{{ project.name }}:
89139 {% for platform in platforms %}
90140 {% for testplatform in testplatforms %}
91141 {% for win_api in win_apis %}
92- - .yamato/upm-ci-{{ project.name | downcase }}.yml#{{ project.name }}_Win_{{ win_api.name }}_{{ testplatform.name }}_trunk
142+ - .yamato/upm-ci-{{ project.name | downcase }}.yml#{{ project.name }}_Win_{{ win_api.name }}_{{ testplatform.name }}_{{ editor.version }}
93143 {% endfor %}
94144 {% endfor %}
95145 {% endfor %}
96146
97- {% endfor %}
147+ {% endfor %} # project
148+ {% endfor %} # editor
0 commit comments