Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a729c9f
commit e808dcb
Showing
1 changed file
with
60 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |