Skip to content
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
36ee7cf
check if variable gets passed to report generator
stefanunity Jan 3, 2025
84f5547
Revert "check if variable gets passed to report generator"
stefanunity Jan 7, 2025
debf970
new try how the manual says
stefanunity Jan 7, 2025
beaab4b
Update upm-ci.yml
stefanunity Jan 7, 2025
b97bd27
Update upm-ci.yml
stefanunity Jan 7, 2025
6dd6215
Update upm-ci.yml
stefanunity Jan 7, 2025
2d8f759
nicer if clause
stefanunity Jan 7, 2025
4b604d7
Update upm-ci.yml
stefanunity Jan 7, 2025
56e8ecb
Update upm-ci.yml
stefanunity Jan 7, 2025
e2abfee
add merging to mac and linux editor job
stefanunity Jan 8, 2025
a2da19c
add pathfilter to package test run
stefanunity Jan 8, 2025
022280c
try sourcePaths option
stefanunity Jan 8, 2025
f252813
try pathReplacePatterns to fix reporting
stefanunity Jan 9, 2025
ad6cd3a
delete pre-merge reports to no clutter artifacts with it
stefanunity Jan 9, 2025
540e8f9
fix variable use
stefanunity Jan 9, 2025
959b25c
Update upm-ci.yml
stefanunity Jan 9, 2025
6058faf
Update upm-ci.yml
stefanunity Jan 9, 2025
b2bb38c
more pathreplacing for upm ci oddities
stefanunity Jan 10, 2025
67348cc
shorter version to fix path replacing with "@"
stefanunity Jan 10, 2025
2660099
remove env var from control flow
stefanunity Jan 10, 2025
8093933
Update upm-ci.yml
stefanunity Jan 10, 2025
673ab55
Update upm-ci.yml
stefanunity Jan 10, 2025
b6cb422
Update upm-ci.yml
stefanunity Jan 10, 2025
5d0230c
Update upm-ci.yml
stefanunity Jan 10, 2025
3fb2d61
Update upm-ci.yml
stefanunity Jan 10, 2025
7ff1997
13
stefanunity Jan 10, 2025
68dba2f
Update upm-ci.yml
stefanunity Jan 10, 2025
bcae9a0
now maybe
stefanunity Jan 10, 2025
37e2f7a
Update upm-ci.yml
stefanunity Jan 10, 2025
963e086
Update upm-ci.yml
stefanunity Jan 10, 2025
4a8bd77
Revert "Update upm-ci.yml"
stefanunity Jan 10, 2025
5d140f5
Update upm-ci.yml
stefanunity Jan 10, 2025
194a692
remove the env var and just delete pre-merge reports
stefanunity Jan 10, 2025
1578392
fix too many double quotes
stefanunity Jan 10, 2025
6e0ddc5
delete pre-merge reports
stefanunity Jan 10, 2025
cd53170
remove unused variable again
stefanunity Jan 10, 2025
1e82e6b
Merge branch 'develop' into ci/coverage-report-merge
stefanunity Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .yamato/upm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
flavor: {{ platform.flavor }}
variables:
EDITOR_VERSION: {{ editor.version }}
commands:
commands:
- {{ utr_install_win }}
- {{ upm_ci_install }}
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
Expand All @@ -26,7 +26,7 @@
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
# Run upm-ci verification tests as well as tests contained in the package.
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
{% if platform.name == "win" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
{% if platform.name == "win" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages"
--extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
{% if platform.installscript %}
- {{ unity_downloader_install }}
Expand All @@ -38,6 +38,13 @@
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
- ./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 {% if platform.name == "win" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
# Merge all the code coverage results into one report.
{% if platform.name == "win" %}
- '{{ yamato_source_dir_win }}/.Editor/Unity.exe -projectPath {{ yamato_source_dir_win }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_win }}/Packages/com.unity.inputsystem/" -quit'
#delete the reports from the two runs and only keep the final merged one
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project"
{% endif %}
after:
- {{ instabilities_install_win }}
- {{ instabilities_run_win }}
Expand Down Expand Up @@ -70,7 +77,7 @@
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
# Run upm-ci verification tests as well as tests contained in the package.
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
{% if platform.installscript %}
- {{ unity_downloader_install }}
- {{ platform.installscript }} $EDITOR_VERSION
Expand All @@ -81,6 +88,15 @@
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or 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 {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
# Merge all the code coverage results into one report.
{% if platform.name == "mac" %}
- '{{ yamato_source_dir_nix }}/.Editor/Unity.app/Contents/MacOS/Unity -projectPath {{ yamato_source_dir_nix }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_nix }}/Packages/com.unity.inputsystem/" -quit'
{% endif %}
{% if platform.name == "linux" %}
- '{{ yamato_source_dir_nix }}/.Editor/Unity -projectPath {{ yamato_source_dir_nix }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_nix }}/Packages/com.unity.inputsystem/" -quit'
{% endif %}
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project
after:
- {{ instabilities_install_nix }}
- {{ platform.instabilities_run }}
Expand Down
Loading