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