Skip to content

Commit 4580a80

Browse files
committed
fix wrong source dir paths
1 parent 821aac6 commit 4580a80

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.yamato/config.metadata

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,7 @@ instabilities_install_win: curl -s https://artifactory.prd.it.unity3d.com/artifa
8484
instabilities_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0
8585

8686
instabilities_install_nix: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.sh --output run_standalone_instability_detection-latest.sh --retry 5 || exit 0
87-
instabilities_run_mac: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
87+
instabilities_run_mac: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
88+
89+
yamato_source_dir_win: "%YAMATO_SOURCE_DIR%"
90+
yamato_source_dir_nix: ${YAMATO_SOURCE_DIR}

.yamato/upm-ci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
- move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
2424
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
2525
# Run upm-ci verification tests as well as tests contained in the package.
26-
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path=%YAMATO_SOURCE_DIR%/upm-ci~/test-results/CodeCoverage/Package"
26+
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
27+
--enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
28+
--extra-utr-arg="--coverage-results-path=yamato_source_dir_win/upm-ci~/test-results/CodeCoverage/Package"
2729
{% if platform.installscript %}
2830
- {{ unity_downloader_install }}
2931
- {{ platform.installscript }} {{ editor.version }}
@@ -33,7 +35,13 @@
3335
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3436
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3537
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
36-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path=%YAMATO_SOURCE_DIR%/upm-ci~/test-results/CodeCoverage/Project
38+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests
39+
--suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %}
40+
--api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %}
41+
{% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %}
42+
--report-performance-data --performance-project-id=InputSystem
43+
{% if platform.name == "win" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
44+
--coverage-results-path=yamato_source_dir_win/upm-ci~/test-results/CodeCoverage/Project {% endif %}
3745
after:
3846
- {{ instabilities_install_win }}
3947
- {{ instabilities_run_win }}
@@ -64,7 +72,9 @@
6472
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
6573
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
6674
# Run upm-ci verification tests as well as tests contained in the package.
67-
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path=%YAMATO_SOURCE_DIR%/upm-ci~/test-results/CodeCoverage/Package"
75+
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
76+
--enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
77+
--extra-utr-arg="--coverage-results-path=yamato_source_dir_nix/upm-ci~/test-results/CodeCoverage/Package"
6878
{% if platform.installscript %}
6979
- {{ unity_downloader_install }}
7080
- {{ platform.installscript }} {{ editor.version }}
@@ -74,7 +84,14 @@
7484
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
7585
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
7686
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
77-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if platform.name == "linux" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path=%YAMATO_SOURCE_DIR%/upm-ci~/test-results/CodeCoverage/Project
87+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode
88+
{% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %}
89+
{% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6
90+
{% if platform.runtime %} --platform {{ platform.runtime }} {% endif %}
91+
{% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %}
92+
--report-performance-data --performance-project-id=InputSystem
93+
{% if platform.name == "mac" or platform.name == "linux" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
94+
--coverage-results-path=yamato_source_dir_nix/upm-ci~/test-results/CodeCoverage/Project {% endif %}
7895
after:
7996
- {{ instabilities_install_nix }}
8097
- {{ platform.instabilities_run }}

0 commit comments

Comments
 (0)