|
37 | 37 | - move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets |
38 | 38 | # Now run our full test suite that sits in Assets/Tests by running UTR on our project. |
39 | 39 | - ./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 {% else %} --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 %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %} |
40 | | - # Merge all the code coverage results into one report. |
41 | 40 | {% if platform.name == "win" and category.name == "functional" %} |
42 | | - - '{{ 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' |
43 | | - # Delete the Package and Project reports, only keep the final merged one to keep Aritfacts.zip smaller |
| 41 | + # Delete the Package and Project reports & raw coverage data, to keep Aritfacts.zip smaller |
44 | 42 | - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" |
45 | 43 | - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project" |
46 | 44 | {% endif %} |
|
92 | 90 | - mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets |
93 | 91 | # Now run our full test suite that sits in Assets/Tests by running UTR on our project. |
94 | 92 | - ./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 {% else %} --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 %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and 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 --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %} |
95 | | - # Merge all the code coverage results into one report. |
96 | | - {% if platform.name == "mac" and category.name == "functional" %} |
97 | | - - '{{ 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' |
98 | | - {% endif %} |
99 | | - {% if platform.name == "linux" and category.name == "functional" %} |
100 | | - - '{{ 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' |
101 | | - {% endif %} |
102 | | - # Delete the Package and Project reports, only keep the final merged one to keep Aritfacts.zip smaller |
| 93 | + {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%} |
| 94 | + # Delete the Package and Project reports & raw coverage data, to keep Aritfacts.zip smaller |
103 | 95 | - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package |
104 | | - - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project |
| 96 | + - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project |
| 97 | + {% endif %} |
105 | 98 | after: |
106 | 99 | - {{ instabilities_install_nix }} |
107 | 100 | - {{ platform.instabilities_run }} |
|
0 commit comments