Skip to content

Commit 194a692

Browse files
committed
remove the env var and just delete pre-merge reports
1 parent 5d140f5 commit 194a692

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.yamato/upm-ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
flavor: {{ platform.flavor }}
1313
variables:
1414
EDITOR_VERSION: {{ editor.version }}
15-
KEEP_TEMP_CODE_COVERAGE_REPORTS: false
16-
commands:
17-
{% assign keep_temp_coverage_reports = %KEEP_TEMP_CODE_COVERAGE_REPORTS% %}
18-
- echo {{ keep_temp_coverage_reports }}
15+
commands:
1916
- {{ utr_install_win }}
2017
- {{ upm_ci_install }}
2118
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
@@ -44,13 +41,9 @@
4441
# Merge all the code coverage results into one report.
4542
{% if platform.name == "win" %}
4643
- '{{ 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'
47-
#delete the reports from the two runs to only keep the final merged on
48-
{% assign keep_temp_coverage_reports = KEEP_TEMP_CODE_COVERAGE_REPORTS %}
49-
{% if keep_temp_coverage_reports != true %}
50-
- echo "inside the if"
44+
#delete the reports from the two runs and only keep the final merged one
5145
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
52-
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project"
53-
{% endif %}
46+
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project"
5447
{% endif %}
5548
after:
5649
- {{ instabilities_install_win }}
@@ -84,7 +77,7 @@
8477
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
8578
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
8679
# Run upm-ci verification tests as well as tests contained in the package.
87-
- 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 %}
80+
- 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 %}
8881
{% if platform.installscript %}
8982
- {{ unity_downloader_install }}
9083
- {{ platform.installscript }} $EDITOR_VERSION

0 commit comments

Comments
 (0)