forked from Unity-Technologies/Git-for-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
48 lines (40 loc) · 1.35 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: Visual Studio 2017
environment:
matrix:
- node_version: '8'
install:
- ps: Install-Product node 8 x64
- ps: |
scripts\Get-Deps.ps1
nuget restore
configuration: Release
build:
project: GitForUnity.sln
verbosity: minimal
test:
assemblies:
except:
- '**\*.TestRunner.dll'
- '**\TestUtils.dll'
categories:
except:
- DoNotRunOnAppVeyor
on_success:
- ps: |
$version = $env:APPVEYOR_BUILD_VERSION
Write-Output "Packaging version $($env:GitAssemblyInformationalVersion) ($version)"
scripts\Create-Packages.ps1 $version
# save commit and binaries
$sourcedir="$($env:appveyor_build_folder)\build\Release"
$commitfile="$sourcedir\commit"
Add-Content $commitfile $appveyor_repo_commit
$dllzip="$($env:appveyor_build_folder)\artifacts\binaries-$version.zip"
Write-Output "Zipping $sourcedir to $dllzip"
7z a $dllzip $sourcedir
on_finish:
- ps: |
Set-Location $env:appveyor_build_folder
$manifest = "$($env:appveyor_build_folder)\artifacts\manifest.json"
scripts\Upload-ToAppveyor.ps1 $manifest
Get-ChildItem $env:appveyor_build_folder\build\*.log | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName logs }
Get-ChildItem $env:appveyor_build_folder\artifacts\binaries*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName binaries }