-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathproject-updated-dependencies-test.yml
More file actions
69 lines (61 loc) · 3.49 KB
/
project-updated-dependencies-test.yml
File metadata and controls
69 lines (61 loc) · 3.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{% metadata_file .yamato/project.metafile %} # All configuration that is used to create different configurations (used in for loops) is taken from this file.
---
# DESCRIPTION--------------------------------------------------------------------------
# This job is responsible fo validating package compatibility with latest dependency versions.
# This helps detect potential breaking changes from dependency updates early
# CONFIGURATION STRUCTURE--------------------------------------------------------------
# Jobs configurations are generated using nested loops through:
# 1. For all projects (testproject, minimalproject, testproject-tools-integration).
# 2. For all desktop platforms (Win, Ubuntu, Mac)
# 3. For all supported editors (For NGOv2.X it means 6000+)
# TECHNICAL CONSIDERATIONS----------------------------------------------------------------
# This job requires successful project packaging before execution (job dependency)
# This job tests only NGO package dependencies (com.unity.netcode.gameobjects)
# The results are being generated in upm-ci~/test-results directory (specific of upm-ci)
# QUALITY CONSIDERATIONS---------------------------------------------------------------------
# TODO: Currently upm-ci is being used but in the future it will be replaced by upm-pvp
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
#--------------------------------------------------------------------------------------
{% for project in projects.all -%}
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
updated-dependencies_{{ project.name }}_NGO_{{ platform.name }}_{{ editor }}:
name : Updated Dependencies Test - NGO {{ project.name }} [{{ platform.name }}, {{ editor }}]
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if platform.model %}
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
{% endif %}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
- upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type updated-dependencies-tests --package-filter com.unity.netcode.gameobjects
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/project-updated-dependencies-test.yml#project_pack_-_{{ project.name }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endfor -%}
# TODO: This job was removed on PR-3711 but the above job somehow can find proper artifacts with package pack job.
# This job should be removed when issue will be resolved since it's not used anywhere
{% for project in projects.all -%}
{% for platform in test_platforms.desktop -%}
project_pack_-_{{ project.name }}_{{ platform.name }}:
name: Project Pack - {{ project.name }} [{{ platform.name }}]
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
- upm-ci project pack --project-path {{ project.path }}
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
{% endfor -%}
{% endfor -%}