|
| 1 | + |
| 2 | +# From https://github.com/Unity-Technologies/PostProcessing/blob/v2/.yamato/upm-ci.yml |
| 3 | + |
| 4 | +name: postprocessing |
| 5 | +test_editors: |
| 6 | + - trunk |
| 7 | + - 2021.1 |
| 8 | + - 2020.2 |
| 9 | + - 2019.4 |
| 10 | + - 2018.4 |
| 11 | +test_platforms: |
| 12 | + - name: win |
| 13 | + type: Unity::VM |
| 14 | + image: package-ci/win10:stable |
| 15 | + flavor: b1.large |
| 16 | + - name: mac |
| 17 | + type: Unity::VM::osx |
| 18 | + image: package-ci/mac:stable |
| 19 | + flavor: m1.mac |
| 20 | +--- |
| 21 | +{{ name }}_pack: |
| 22 | + name: {{ name }} - Pack |
| 23 | + agent: |
| 24 | + type: Unity::VM |
| 25 | + image: package-ci/win10:stable |
| 26 | + flavor: b1.large |
| 27 | + commands: |
| 28 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 29 | + - upm-ci package pack --package-path com.unity.postprocessing |
| 30 | + artifacts: |
| 31 | + packages: |
| 32 | + paths: |
| 33 | + - "upm-ci~/**/*" |
| 34 | + |
| 35 | +{% for editor in test_editors %} |
| 36 | +{% for platform in test_platforms %} |
| 37 | +{{ name }}_test_{{ platform.name }}_{{ editor }}: |
| 38 | + name : {{ name }} - Test {{ editor }} on {{ platform.name }} |
| 39 | + agent: |
| 40 | + type: {{ platform.type }} |
| 41 | + image: {{ platform.image }} |
| 42 | + flavor: {{ platform.flavor}} |
| 43 | + commands: |
| 44 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 45 | + - upm-ci package test --unity-version {{ editor }} --package-path com.unity.postprocessing --extra-utr-arg="--compilation-errors-as-warnings" |
| 46 | + artifacts: |
| 47 | + logs: |
| 48 | + paths: |
| 49 | + - "upm-ci~/test-results/**/*" |
| 50 | + dependencies: |
| 51 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_pack |
| 52 | +{% endfor %} |
| 53 | +{% endfor %} |
| 54 | + |
| 55 | +{{ name }}_test_trigger: |
| 56 | + name: {{ name }} - Tests Trigger |
| 57 | + agent: |
| 58 | + type: Unity::VM |
| 59 | + image: package-ci/win10:stable |
| 60 | + flavor: b1.large |
| 61 | + commands: |
| 62 | + - dir |
| 63 | + artifacts: |
| 64 | + logs: |
| 65 | + paths: |
| 66 | + - "upm-ci~/test-results/**/*" |
| 67 | + packages: |
| 68 | + paths: |
| 69 | + - "upm-ci~/packages/**/*" |
| 70 | + dependencies: |
| 71 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_pack |
| 72 | + {% for editor in test_editors %} |
| 73 | + {% for platform in test_platforms %} |
| 74 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_test_{{platform.name}}_{{editor}} |
| 75 | + {% endfor %} |
| 76 | + {% endfor %} |
| 77 | + |
| 78 | +{{ name }}_publish: |
| 79 | + name: {{ name }} - Publish to Internal Registry |
| 80 | + agent: |
| 81 | + type: Unity::VM |
| 82 | + image: package-ci/win10:stable |
| 83 | + flavor: b1.large |
| 84 | + commands: |
| 85 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 86 | + - upm-ci package publish --package-path com.unity.postprocessing |
| 87 | + artifacts: |
| 88 | + artifacts: |
| 89 | + paths: |
| 90 | + - "upm-ci~/packages/*.tgz" |
| 91 | + dependencies: |
| 92 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_pack |
| 93 | + {% for editor in test_editors %} |
| 94 | + {% for platform in test_platforms %} |
| 95 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_test_{{ platform.name }}_{{ editor }} |
| 96 | + {% endfor %} |
| 97 | + {% endfor %} |
| 98 | + |
| 99 | + |
| 100 | +{{ name }}_publish_dry_run: |
| 101 | + name: {{ name }} - Publish to Internal Registry [dry-run] |
| 102 | + agent: |
| 103 | + type: Unity::VM |
| 104 | + image: package-ci/win10:stable |
| 105 | + flavor: b1.large |
| 106 | + commands: |
| 107 | + - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
| 108 | + - upm-ci package publish --dry-run --package-path com.unity.postprocessing |
| 109 | + artifacts: |
| 110 | + artifacts: |
| 111 | + paths: |
| 112 | + - "upm-ci~/packages/*.tgz" |
| 113 | + dependencies: |
| 114 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_pack |
| 115 | + {% for editor in test_editors %} |
| 116 | + {% for platform in test_platforms %} |
| 117 | + - .yamato/_tmp_postprocessing.yml#{{ name }}_test_{{ platform.name }}_{{ editor }} |
| 118 | + {% endfor %} |
| 119 | + {% endfor %} |
0 commit comments