|
| 1 | +editors: |
| 2 | + - version: 2018.3 |
| 3 | + - version: 2019.1 |
| 4 | + - version: 2019.2 |
| 5 | + - version: trunk |
| 6 | +platforms: |
| 7 | + - name: win |
| 8 | + type: Unity::VM |
| 9 | + image: package-ci/win10:stable |
| 10 | + flavor: m1.large |
| 11 | + - name: mac |
| 12 | + type: Unity::VM::osx |
| 13 | + image: buildfarm/mac:stable |
| 14 | + flavor: m1.mac |
| 15 | +--- |
| 16 | +pack: |
| 17 | + name: Pack |
| 18 | + agent: |
| 19 | + type: Unity::VM |
| 20 | + image: package-ci/ubuntu:latest |
| 21 | + flavor: m1.large |
| 22 | + commands: |
| 23 | + - ./build.sh |
| 24 | + - npm install -g upm-ci-utils@latest --registry https://api.bintray.com/npm/unity/unity-npm |
| 25 | + - upm-ci package pack --package-path com.unity.formats.fbx |
| 26 | + artifacts: |
| 27 | + packages: |
| 28 | + paths: |
| 29 | + - "upm-ci~/packages/**/*" |
| 30 | + build: |
| 31 | + paths: |
| 32 | + - "com.unity.formats.fbx/*" |
| 33 | + |
| 34 | +{% for editor in editors %} |
| 35 | +{% for platform in platforms %} |
| 36 | +test_{{ platform.name }}_{{ editor.version }}: |
| 37 | + name : Test version {{ editor.version }} on {{ platform.name }} |
| 38 | + agent: |
| 39 | + type: {{ platform.type }} |
| 40 | + image: {{ platform.image }} |
| 41 | + flavor: {{ platform.flavor}} |
| 42 | + commands: |
| 43 | + - git clone --branch dev --single-branch [email protected]:upm-packages/project-templates/upm-template-utils.git upm-ci-utils |
| 44 | + - npm install upm-ci-utils/ -g |
| 45 | + - upm-ci package test --unity-version {{ editor.version }} --package-path com.unity.formats.fbx |
| 46 | + artifacts: |
| 47 | + logs.zip: |
| 48 | + paths: |
| 49 | + - "upm-ci~/logs/**/*" |
| 50 | + - "upm-ci~/test-results/**/*" |
| 51 | + artifacts.zip: |
| 52 | + paths: |
| 53 | + - "upm-ci~/packages/**/*" |
| 54 | + - "upm-ci~/templates/**/*" |
| 55 | + dependencies: |
| 56 | + - .yamato/upm-ci.yml#pack |
| 57 | +{% endfor %} |
| 58 | +{% endfor %} |
| 59 | + |
| 60 | +test_trigger: |
| 61 | + name: Tests Trigger |
| 62 | + agent: |
| 63 | + type: Unity::VM |
| 64 | + image: package-ci/win10:stable |
| 65 | + flavor: m1.large |
| 66 | + commands: |
| 67 | + - dir |
| 68 | + triggers: |
| 69 | + branches: |
| 70 | + only: |
| 71 | + - "/.*/" |
| 72 | + except: |
| 73 | + - master |
| 74 | + artifacts: |
| 75 | + logs: |
| 76 | + paths: |
| 77 | + - "upm-ci~/test-results/**/*" |
| 78 | + packages: |
| 79 | + paths: |
| 80 | + - "upm-ci~/packages/**/*" |
| 81 | + dependencies: |
| 82 | + - .yamato/upm-ci.yml#pack |
| 83 | + {% for editor in editors %} |
| 84 | + {% for platform in platforms %} |
| 85 | + - .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}} |
| 86 | + {% endfor %} |
| 87 | + {% endfor %} |
| 88 | + |
| 89 | +publish: |
| 90 | + name: Publish |
| 91 | + agent: |
| 92 | + type: Unity::VM |
| 93 | + image: package-ci/win10:latest |
| 94 | + flavor: m1.large |
| 95 | + name: Runner |
| 96 | + commands: |
| 97 | + - npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm |
| 98 | + - upm-ci package publish |
| 99 | + triggers: |
| 100 | + tags: |
| 101 | + only: |
| 102 | + - /^(v|V)[0-9]+.[0-9]+.[0-9]+/ |
| 103 | + artifacts: |
| 104 | + logs.zip: |
| 105 | + paths: |
| 106 | + - "upm-ci~/logs/**/*" |
| 107 | + - "upm-ci~/test-results/**/*" |
| 108 | + Package.zip: |
| 109 | + paths: |
| 110 | + - "upm-ci~/package/*.tgz" |
| 111 | + dependencies: |
| 112 | + {% for editor in editors %} |
| 113 | + {% for platform in platforms %} |
| 114 | + - .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }} |
| 115 | + {% endfor %} |
| 116 | + {% endfor %} |
0 commit comments