-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathpackage-tests.yml
More file actions
42 lines (40 loc) · 2.19 KB
/
package-tests.yml
File metadata and controls
42 lines (40 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% metadata_file .yamato/project.metafile %}
---
# Executes PlayMode and EditMode tests of the NGO package in the Editor context
# Those tests run in the editor so we don't need to consider different scripting backends or architectures
# Tests are executed for all supported editors on each desktop platform as in project.metafile declaration
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
package_test_-_ngo_{{ editor }}_{{ platform.name }}:
name : Package Test - NGO [{{ platform.name }}, {{ editor }}]
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
variables:
XRAY_PROFILE: "supported ./pvpExceptions.json"
UNITY_EXT_LOGGING: 1
commands:
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
# Platform specific UTR setup
- |
{% if platform.name == "win" %}
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
{% else %}
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
{% endif %}
# Validate packages.
- upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --results pvp-results
- upm-pvp require {% if platform.name == "win" %}"%XRAY_PROFILE%"{% else %}"$XRAY_PROFILE"{% endif %} --results pvp-results
# Run UTR to test packages.
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %} {% if platform.name == "win" %} utr.bat {% else %} ./utr {% endif %} --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --artifacts-path=test-results "--ff={ops.upmpvpevidence.enable=true}" --extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
- "pvp-results/*"
dependencies:
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
{% endfor -%}
{% endfor -%}