Skip to content

Commit

Permalink
[yamato] New templated config
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyCreak authored and romainf-unity committed Jan 25, 2019
1 parent a729c9f commit e808dcb
Showing 1 changed file with 60 additions and 25 deletions.
85 changes: 60 additions & 25 deletions .yamato/build.yml
@@ -1,25 +1,60 @@
name: Build and Test
agent:
type: Unity::VM
image: packages/windows:latest
flavor: m1.large
name: Validate a Package in CI
commands:
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
# Add your custom build commands here
- upm-ci package pack --package-path .
- upm-ci package test --editor-revision 445af4d85bb46baa615b469ca3cca83ec8892e78 --package-path .
triggers:
branches:
only:
- master
tags:
only:
- /(p|P)ublish/
artifacts:
Package.zip:
paths:
- "automation/packages/*.tgz"
UTR_Output.zip:
paths:
- "utr_output/**/*"
editors:
- version: 2019.1
platforms:
- name: win
type: Unity::VM
image: package-ci/win10:latest
flavor: m1.large
- name: mac
type: Unity::VM::osx
image: buildfarm/mac:stable
flavor: m1.mac
---
{% for editor in editors %}
{% for platform in platforms %}
{{ platform.name }}_{{ editor.version }}:
name : Build and Test version {{ editor.version }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- upm-ci package pack
- upm-ci package test --unity-version {{ editor.version }}
triggers:
branches:
only:
- master
artifacts:
UTR_Output.zip:
paths:
- "utr_output/**/*"
{% endfor %}
{% endfor %}

run_preview_verified_staging:
name: Preview and Verified Packages to Staging
agent:
type: Unity::VM
image: package-ci/win10:latest
flavor: m1.large
name: Runner
commands:
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- upm-ci package pack
- upm-ci package publish --registry staging
triggers:
tags:
only:
- /^(v|V)[0-9].[0-9].[0-9]/
artifacts:
Package.zip:
paths:
- "automation/package/*.tgz"
dependencies:
{% for editor in editors %}
{% for platform in platforms %}
- .yamato/build.yml#{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}

0 comments on commit e808dcb

Please sign in to comment.