2
2
---
3
3
4
4
{% for editor in editors %}
5
- {% for platform in platforms %}
5
+ {% for platform in platforms_win %}
6
6
{{ platform.name }}_{{ editor.version }}:
7
7
name : Build and Test version {{ editor.version }} on {{ platform.name }}
8
8
agent :
9
9
type : {{ platform.type }}
10
10
image : {{ platform.image }}
11
- flavor : {{ platform.flavor}}
11
+ flavor : {{ platform.flavor }}
12
12
commands :
13
- # Install any extra .NET SDK's on images that don't have them, "docfx metadata" requires a .NET SDK to work.
14
- {% if platform.netinstall %}
15
- - {{ platform.netinstall }}
16
- {% endif %}
13
+ - {{ utr_install_win }}
14
+ - {{ upm_ci_install }}
15
+ # Get latest version of doctools package. Automatically makes the documentation tests in APIVerification go live.
16
+ - ' %GSUDO% choco install netfx-4.7.1-devpack -y --ignore-detected-reboot --ignore-package-codes'
17
+ -
git clone [email protected] :unity/com.unity.package-manager-doctools.git Packages/com.unity.package-manager-doctools
18
+ # We keep the samples in Assets/ as they otherwise won't get imported and you can't
19
+ # really work with them. Move them into the package for when we run upm-ci here.
20
+ - move /Y .\Assets\Samples .\Packages\com.unity.inputsystem
21
+ - move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
22
+ - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
23
+ # Run upm-ci verification tests as well as tests contained in the package.
24
+ - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
25
+ {% if platform.installscript %}
26
+ - {{ unity_downloader_install }}
27
+ - {{ platform.installscript }} {{ editor.version }}
28
+ {% endif %}
29
+ # ADBv2 on 2019.4 causes the test runner to not start on initial import when the
30
+ # samples are in the package. Move the samples back into the project.
31
+ - move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
32
+ - move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
33
+ # Now run our full test suite that sits in Assets/Tests by running UTR on our project.
34
+ - ./utr --testproject . --timeout=1200 --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 %} --report-performance-data --performance-project-id=InputSystem
35
+ artifacts :
36
+ UTR_Output.zip :
37
+ paths :
38
+ - " upm-ci~/test-results/**/*"
39
+ {% endfor %}
40
+ {% for platform in platforms_nix %}
41
+ {{ platform.name }}_{{ editor.version }}:
42
+ name : Build and Test version {{ editor.version }} on {{ platform.name }}
43
+ agent :
44
+ type : {{ platform.type }}
45
+ image : {{ platform.image }}
46
+ flavor : {{ platform.flavor }}
47
+ commands :
48
+ - {{ utr_install_nix }}
49
+ - {{ upm_ci_install }}
17
50
# Get latest version of doctools package. Automatically makes the documentation tests in APIVerification go live.
18
51
-
git clone [email protected] :unity/com.unity.package-manager-doctools.git Packages/com.unity.package-manager-doctools
19
52
# We keep the samples in Assets/ as they otherwise won't get imported and you can't
20
53
# really work with them. Move them into the package for when we run upm-ci here.
21
54
- mv ./Assets/Samples ./Packages/com.unity.inputsystem
22
55
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
23
- - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
24
56
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
25
57
# Run upm-ci verification tests as well as tests contained in the package.
26
58
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
27
59
{% if platform.installscript %}
28
- - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
60
+ - {{ unity_downloader_install }}
29
61
- {{ platform.installscript }} {{ editor.version }}
30
62
{% endif %}
31
63
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
32
64
# samples are in the package. Move the samples back into the project.
33
65
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
34
66
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
35
67
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
36
- - upm-ci~/tools/utr /utr --testproject . --timeout=1200 --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 %} --report-performance-data --performance-project-id=InputSystem
68
+ - . /utr --testproject . --timeout=1200 --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 %} --report-performance-data --performance-project-id=InputSystem
37
69
artifacts :
38
70
UTR_Output.zip :
39
71
paths :
@@ -46,13 +78,12 @@ build_ios_{{ editor.version }}:
46
78
name : Build Tests on {{ editor.version }} on ios
47
79
agent :
48
80
type : Unity::VM::osx
49
- image : package-ci/macos-12-mobile:stable
81
+ image : package-ci/macos-12:default
50
82
flavor : b1.large
51
83
commands :
52
- - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
84
+ - {{ utr_install_nix }}
85
+ - {{ unity_downloader_install }}
53
86
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast -w
54
- - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
55
- - chmod +x ./utr
56
87
- ./utr --suite=playmode --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
57
88
artifacts :
58
89
players :
@@ -66,18 +97,14 @@ run_ios_{{ editor.version }}:
66
97
name : Run Tests on {{ editor.version }} on ios
67
98
agent :
68
99
type : Unity::mobile::iPhone
69
- image : package-ci/macos-12-mobile:stable
100
+ image : package-ci/macos-12:default
70
101
model : SE
71
102
flavor : b1.medium
72
103
skip_checkout : true
73
104
dependencies :
74
105
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}
75
106
commands :
76
- # Download standalone UnityTestRunner
77
- - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
78
- # Give UTR execution permissions
79
- - chmod +x ./utr
80
- # Run the test build on the device
107
+ - {{ utr_install_nix }}
81
108
- ./utr --suite=playmode --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
82
109
artifacts :
83
110
logs :
@@ -87,14 +114,14 @@ run_ios_{{ editor.version }}:
87
114
build_tvos_{{ editor.version }} :
88
115
name : Build Tests on {{ editor.version }} on tvos
89
116
agent :
90
- type : Unity::VM::osx
117
+ type : Unity::VM::osx # Use Unity::mobile::appletv to get tvOS device
118
+ # TODO this should be replaced with package-ci/macos-12:default when PETS-1172 is complete
91
119
image : package-ci/macos-12-mobile:stable
92
120
flavor : b1.large
93
121
commands :
94
- - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
122
+ - {{ utr_install_nix }}
123
+ - {{ unity_downloader_install }}
95
124
- unity-downloader-cli -c Editor -c AppleTV -u {{ editor.version }} --fast -w
96
- - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
97
- - chmod +x ./utr
98
125
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
99
126
artifacts :
100
127
players :
@@ -109,13 +136,13 @@ build_android_{{ editor.version }}_{{ backend.name }}:
109
136
name : Build Tests on {{ editor.version }} on android {{ backend.name }}
110
137
agent :
111
138
type : Unity::VM
112
- image : mobile/android- package-ci-win:latest
139
+ image : package-ci/win10:default
113
140
flavor : b1.xlarge
114
141
commands :
115
- - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
142
+ - {{ utr_install_win }}
143
+ - {{ unity_downloader_install }}
116
144
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast -w
117
- - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
118
- - ./utr.bat --suite=playmode --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository --performance-project-id=InputSystem
145
+ - ./utr --suite=playmode --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository --performance-project-id=InputSystem
119
146
artifacts :
120
147
players :
121
148
paths :
@@ -128,17 +155,16 @@ run_android_{{ editor.version }}_{{ backend.name }}:
128
155
name : Run Tests on {{ editor.version }} on android {{ backend.name }}
129
156
agent :
130
157
type : Unity::mobile::shield
131
- image : mobile/android- package-ci-win:latest
158
+ image : package-ci/win10:default
132
159
flavor : b1.medium
133
160
# Skip repository cloning
134
161
skip_checkout : true
135
162
# Set a dependency on the build job
136
163
dependencies :
137
164
- .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}
138
165
commands :
166
+ - {{ utr_install_win }}
139
167
- |
140
- # Download standalone UnityTestRunner
141
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
142
168
# Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
143
169
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
144
170
# Establish an ADB connection with the device
@@ -163,7 +189,10 @@ all_tests:
163
189
name : All Tests
164
190
dependencies :
165
191
{% for editor in editors %}
166
- {% for platform in platforms %}
192
+ {% for platform in platforms_win %}
193
+ - .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}
194
+ {% endfor %}
195
+ {% for platform in platforms_nix %}
167
196
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}
168
197
{% endfor %}
169
198
{% for backend in scripting_backends %}
@@ -185,14 +214,14 @@ publish{% cycle "", "_dryrun" %}:
185
214
name : Publish to Internal Registry {% cycle "", "(Dry Run)" %}
186
215
agent :
187
216
type : Unity::VM
188
- image : package-ci/win10:stable
217
+ image : package-ci/win10:default
189
218
flavor : b1.large
190
219
variables :
191
220
UPMCI_ENABLE_PACKAGE_SIGNING : 1
192
221
commands :
222
+ - {{ upm_ci_install }}
193
223
- move /Y .\Assets\Samples .\Packages\com.unity.inputsystem
194
224
- move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
195
- - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
196
225
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
197
226
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u 2019.4
198
227
- upm-ci package publish --package-path ./Packages/com.unity.inputsystem/ {% cycle "", "--dry-run" %}
0 commit comments