yamato single jobs and pack dependency

This commit is contained in:
Andreia Gaita 2019-08-13 11:37:08 +02:00
Родитель 11bd9c95d7
Коммит 49dd009c35
2 изменённых файлов: 38 добавлений и 36 удалений

Просмотреть файл

@ -1,32 +1,31 @@
build:
name: Build
agent:
type: Unity::VM
image: core-kaunas/win10-vs2017-dotnetcore:latest
flavor: m1.large
interpreter: powershell
commands:
- |
#$version = $env:YAMATO_JOB_ID
#Write-Output "Building $version"
#scripts\Set-Version.ps1 $version -BumpPatch -Verbose
name: Build
agent:
type: Unity::VM
image: core-kaunas/win10-vs2017-dotnetcore:latest
flavor: m1.large
interpreter: powershell
commands:
- |
#$version = $env:YAMATO_JOB_ID
#Write-Output "Building $version"
#scripts\Set-Version.ps1 $version -BumpPatch -Verbose
scripts\Get-Deps.ps1
scripts\Build.ps1
scripts\Get-Deps.ps1
scripts\Build.ps1
dotnet tool install --tool-path . nbgv
Push-Location src\com.unity.git.api
$version = ..\..\nbgv get-version -f json | ConvertFrom-Json
Pop-Location
dotnet tool install --tool-path . nbgv
Push-Location src\com.unity.git.api
$version = ..\..\nbgv get-version -f json | ConvertFrom-Json
Pop-Location
Write-Output "Packaging version $($version.AssemblyInformationalVersion)"
scripts\Create-Packages.ps1 $($version.AssemblyInformationalVersion) -Verbose
Write-Output "Packaging version $($version.AssemblyInformationalVersion)"
scripts\Create-Packages.ps1 $($version.AssemblyInformationalVersion) -Verbose
triggers:
branches:
only:
- "/.*/"
artifacts:
packages:
paths:
- "artifacts/*.tgz"
triggers:
branches:
only:
- "/.*/"
artifacts:
packages:
paths:
- "artifacts/*.tgz"

Просмотреть файл

@ -4,16 +4,19 @@ packages:
- name: com.unity.git.ui
path: artifacts/package/com.unity.git.ui
---
pack:
name: Pack
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
name: Pack
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
dependencies:
- .yamato/build.yml
commands:
# - npm install
# - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
- dir artifacts /s
- dir artifacts /s
{% for package in packages %}
# - upm-ci package pack --packages-path {{ package.path }}
{% endfor %}