|
12 | 12 | flavor: {{ platform.flavor }} |
13 | 13 | variables: |
14 | 14 | 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: |
19 | 16 | - {{ utr_install_win }} |
20 | 17 | - {{ upm_ci_install }} |
21 | 18 | # Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview). |
|
44 | 41 | # Merge all the code coverage results into one report. |
45 | 42 | {% if platform.name == "win" %} |
46 | 43 | - '{{ 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 |
51 | 45 | - 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" |
54 | 47 | {% endif %} |
55 | 48 | after: |
56 | 49 | - {{ instabilities_install_win }} |
|
84 | 77 | - mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem |
85 | 78 | - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/ |
86 | 79 | # 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 %} |
88 | 81 | {% if platform.installscript %} |
89 | 82 | - {{ unity_downloader_install }} |
90 | 83 | - {{ platform.installscript }} $EDITOR_VERSION |
|
0 commit comments