Skip to content

Commit

Permalink
Moved pvpException file and updated package test job
Browse files Browse the repository at this point in the history
  • Loading branch information
michalChrobot committed Feb 14, 2025
1 parent a58c37f commit 5ad31b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .yamato/package-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package_pack_-_ngo_{{ platform.name }}:
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci package pack --package-path com.unity.netcode.gameobjects
- upm-pvp xray --packages "upm-ci~/packages/*.tgz" --results upm-ci~/xray
- upm-pvp require "supported com.unity.netcode.gameobjects/pvpExceptions.json" --results upm-ci~/xray
- upm-pvp require "supported pvpExceptions.json" --results upm-ci~/xray
artifacts:
packages:
paths:
Expand Down
10 changes: 9 additions & 1 deletion .yamato/package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ package_test_-_ngo_{{ editor }}_{{ platform.name }}:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
variables:
XRAY_PROFILE: "supported pvpExceptions.json"
UNITY_EXT_LOGGING: 1
commands:
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --type package-tests --extra-utr-arg="--extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun"
# Validate packages.
- upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --results pvp-results
- upm-pvp require "%XRAY_PROFILE%" --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 {% else %} UnifiedTestRunner {% 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:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 5ad31b2

Please sign in to comment.