|
| 1 | +{% metadata_file .yamato/project.metafile %} |
| 2 | +--- |
| 3 | + |
| 4 | +# Validation job for package {{ package.name }}, only using the first entry in the |
| 5 | +# platform and editor meta data |
| 6 | +# Validation only occurs in editmode. |
| 7 | + |
| 8 | +{% for project in projects -%} |
| 9 | +validate_{{ project.packages.first.name }}_{{ test_platforms.first.name }}_{{ test_editors.first }}: |
| 10 | + name : Validate Package {{ project.packages.first.name }} - {{ test_editors.first }} on {{ test_platforms.first.name }} |
| 11 | + agent: |
| 12 | + type: {{ test_platforms.first.type }} |
| 13 | + image: {{ test_platforms.first.image }} |
| 14 | + flavor: {{ test_platforms.first.flavor}} |
| 15 | + commands: |
| 16 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 17 | + - {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ test_editors.first }} --type vetting-tests --project-path {{ project.path }} --package-filter {{ project.packages.first.name }} --platform editmode |
| 18 | + artifacts: |
| 19 | + logs: |
| 20 | + paths: |
| 21 | + - "upm-ci~/test-results/**/*" |
| 22 | + dependencies: |
| 23 | + - .yamato/project-pack.yml#pack_{{ projects.first.name }} |
| 24 | +{% endfor -%} |
| 25 | + |
| 26 | +# For every platform and editor version, run its project tests without |
| 27 | +# running package tests too since they are handled on their respective |
| 28 | +# jobs |
| 29 | +{% for project in projects -%} |
| 30 | +{% for editor in test_editors -%} |
| 31 | +{% for platform in test_platforms -%} |
| 32 | +test_{{ project.name }}_{{ editor }}_{{ platform.name }}: |
| 33 | + name : {{ project.name }} project tests - {{ editor }} on {{ platform.name }} |
| 34 | + agent: |
| 35 | + type: {{ platform.type }} |
| 36 | + image: {{ platform.image }} |
| 37 | + flavor: {{ platform.flavor}} |
| 38 | + commands: |
| 39 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 40 | + - {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests |
| 41 | + artifacts: |
| 42 | + logs: |
| 43 | + paths: |
| 44 | + - "upm-ci~/test-results/**/*" |
| 45 | + dependencies: |
| 46 | + - .yamato/project-pack.yml#pack_{{ project.name }} |
| 47 | + |
| 48 | +{% endfor -%} |
| 49 | +{% endfor -%} |
| 50 | +{% endfor -%} |
| 51 | + |
| 52 | + |
0 commit comments