forked from Unity-Technologies/com.unity.netcode.gameobjects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-coverage.yml
More file actions
23 lines (23 loc) · 1.13 KB
/
Copy pathcode-coverage.yml
File metadata and controls
23 lines (23 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% metadata_file .yamato/project.metafile %}
---
{% for project in projects -%}
{% if project.has_tests == "true" -%}
code_coverage_win_{{ project.name }}_{{ validation_editor }}:
name: Code Coverage Report - Windows - {{ project.name }} - {{ validation_editor }}
agent:
type: Unity::VM
image: package-ci/win10:v4
flavor: b1.large
commands:
- pip install unity-downloader-cli --upgrade --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- unity-downloader-cli -u {{ validation_editor }} -c editor --wait --fast
- upm-ci package test -u .Editor --package-path com.unity.netcode.gameobjects --enable-code-coverage --code-coverage-options 'enableCyclomaticComplexity;generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime,+Unity.Netcode.Components'
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/project-pack.yml#pack_{{ project.name }}
{% endif -%}
{% endfor -%}