forked from Unity-Technologies/com.unity.netcode.gameobjects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_triggers.yml
99 lines (95 loc) · 3.09 KB
/
_triggers.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{% metadata_file .yamato/project.metafile %}
---
develop_nightly:
name: "\U0001F319 [Nightly] Run All Tests"
triggers:
recurring:
- branch: develop
frequency: daily
rerun: always
dependencies:
- .yamato/_run-all.yml#run_all_tests
{% for project in projects -%}
{% if project.has_tests == "true" -%}
- .yamato/code-coverage.yml#code_coverage_win_{{ project.name }}_{{ validation_editor }}
{% endif -%}
{% endfor -%}
develop_weekly_trunk:
name: "\U0001F319 [Weekly] Run All Tests [Trunk]"
triggers:
recurring:
- branch: develop
frequency: weekly
rerun: always
dependencies:
- .yamato/_run-all.yml#run_all_tests_trunk
multiprocess_nightly:
name: "\U0001F319 [Nightly] Run Multiprocess Tests"
triggers:
recurring:
- branch: develop
frequency: daily
rerun: always
dependencies:
- .yamato/_run-all.yml#all_singlenode_multiprocess_tests
# Run all relevant tasks when a pull request targeting the develop
# branch is created or updated. Currently only netcode package tests are
# enabled, since the others are missing test coverage and will fail CI.
pull_request_trigger:
name: Pull Request Trigger (master, develop, & release branches)
dependencies:
- .yamato/project-standards.yml#standards_{{ projects.first.name }}
{% for project in projects -%}
{% for package in project.packages -%}
{% if project.validate == "true" -%}
- .yamato/project-publish.yml#validate_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}
{% endif -%}
{% endfor -%}
{% for platform in test_platforms -%}
{% for package in project.packages -%}
- .yamato/package-tests.yml#test_{{ project.name }}_{{ package.name }}_{{ project.test_editors.first }}_{{ platform.name }}
{% endfor -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ project.test_editors.first }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
triggers:
cancel_old_ci: true
pull_requests:
- targets:
only:
- "master"
- "develop"
- "/release\/.*/"
# Currently, we need to have a trigger to updated badges
# Only package badges currently exist
badges_test_trigger:
name: ⚡ Badges Tests Trigger
agent:
type: Unity::VM
image: package-ci/ubuntu:stable
flavor: b1.small
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci package izon -t
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
packages:
paths:
- "upm-ci~/packages/**/*"
dependencies:
{% for project in projects -%}
{% for package in project.packages -%}
{% if project.validate == "true" -%}
- .yamato/project-publish.yml#validate_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}
{% endif -%}
{% for editor in project.test_editors -%}
{% if editor != "trunk" -%}
{% for platform in test_platforms -%}
- .yamato/package-tests.yml#test_{{ project.name }}_{{ package.name }}_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}
{% endfor -%}