-
Notifications
You must be signed in to change notification settings - Fork 447
/
appveyor.yml
107 lines (84 loc) · 7.49 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
environment:
GHFU_KEY:
secure: KFcQA1VOCEMGUgy2dxH8G5O7C9DsAtQrnc6LakFpd9BRFtNnt2E8RSadPoJwQ9gztWaLS8vQLdU7cV5Ivt01LOnPI2kU1fQd2SHtKwJFve8ppvK/yZ/luhiXvIdGeEAiXQyuc1WUwuECoJVA6n7/uQKr1Q+eHniMitHuFpyQ7OqnwF6f+4TeBS6D78fKd3QoeP4XDdxCjNWPNmLv7BvWFMm5CuTK9aAWhOy8em/nVIED8qt36uHnncsDn+DH7uunj+VwmhVS+4yhuKHHz5naiUAHHIziZ4wBW6Q8rcf7xYEeISjlfxJ6TXs4Wwp406AO+n3v1DZaxSXwvoxplfopeGyb6imJfbwdTU/MHf2uj9wXobR8UhDarcrugVW+J3bqZyvkg20HfSe80gfQUBlK5OdMAp58dhWkddvJSO5TnzqmLlo/60gZxjheIbjdLaavSKcM4xOALXQlBbJJgVQrB/F6tYf7pRK3BlS8VoakyOGjJRzsSNdssSVrLVW3rwANORbH6Z1ZYvQw2ObP6/EBMceer0+JV4y9zB5q9C68erlr1NtJB0xKUp9/7I5GQj4lJ+pDsaFdsj40SyyD4yazSZf/3VIhZi/rQTJm0Ft0ifTZGSxnNTOVMZ5fsoJmUL0bn75Xt9q59cKYzK041HtEzRSElnBeuTf+Sm/MLLV28P1sonwntMhcYQ5ZPIuGmKa8jAJ0kxPXyT56MPJpwbNrbCOw2t9hXg5QbYv/+0RcoRoJ7P/5OY3M6mj8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ROF7mCrLTbPzLn8Fv7EJHgHKNeU/sIT13+5V/UJSZPAxWcaUKhRWWuShSVb/1U13LjiWkHvmuH7SVLHbJDO5C5lA589rz4weTMd1OSymPuNB/xj2d2YrJUwqB3olsaxwm8w/bs2ot4GF4HFAdx3l0ESiR8jkBNAvr6vwRcXv+7nfXRpx2Mo5QU2YaunbqZxibmtNCQZBH8ZpQyUZOek4A5qDh6HW2VyJqKXeE8u1fbtOzB9xDYxgTrlVFhCw==
matrix:
- node_version: '8'
install:
- ps: >-
$full_build = Test-Path env:GHFU_KEY
$package = $full_build
git submodule sync
git submodule init
if ($full_build) {
$env:BUILD_TYPE="full"
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
$fileContent += $env:GHFU_KEY.Replace(' ', "`n")
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
Install-Product node $env:node_version
} else {
$env:BUILD_TYPE="partial"
git submodule deinit script
$destdir = Join-Path $env:appveyor_build_folder 'lib'
$destfile = Join-Path $destdir 'deps.zip'
Set-Location $destdir
Invoke-WebRequest "https://ghfvs-installer.github.com/dependencies/deps.zip" -OutFile $destfile
&'7z' -bb3 x 'deps.zip'
Set-Location $env:appveyor_build_folder
}
git submodule update
nuget restore GitHub.Unity.sln
Set-Location $env:appveyor_build_folder
$version = Get-Content "$($env:appveyor_build_folder)\common\SolutionInfo.cs" | %{ $regex = "const string GitHubForUnityVersion = `"([^`"]*)`""; if ($_ -match $regex) { $matches[1] } }
$env:package_version="$($version).$($env:APPVEYOR_BUILD_NUMBER)"
Update-AppveyorBuild -Version $env:package_version
$message = "Building "
if ($package) { $message += "and packaging "}
if ($full_build) { $message += "(full build)" } else { $message += "(partial build)" }
$message += " version " + $env:package_version + " "
Write-Host $message
assembly_info:
patch: false
file: common\SolutionInfo.cs
assembly_informational_version: "{version}"
configuration: Release
build:
project: GitHub.Unity.sln
verbosity: minimal
test:
assemblies:
except:
- '**\*.TestRunner.dll'
- '**\*.TestUtils.dll'
categories:
except:
- DoNotRunOnAppVeyor
on_success:
- ps: |
if ($package) {
$rootdir=$env:appveyor_build_folder
Set-Location $rootdir
$sourcedir="$rootdir\unity\PackageProject"
$packagename="github-for-unity-$($env:package_version)"
$packagefile="$rootdir\$($packagename).unitypackage"
$commitfile="$sourcedir\commit"
$zipfile="$rootdir\PackageProject-$($env:package_version).zip"
# generate mdb files
Write-Output "Generating mdb files"
Get-ChildItem -Recurse "$($sourcedir)\*.pdb" | foreach { $_.fullname.substring(0, $_.fullname.length - $_.extension.length) } | foreach { Write-Output "Generating $($_).mdb"; & 'lib\pdb2mdb.exe' "$($_).dll" }
# generate unitypackage
Write-Output "Generating $packagefile"
submodules\packaging\unitypackage\run.ps1 -PathToPackage:$sourcedir -OutputFolder:$rootdir -PackageName:$packagename
# save commit
Add-Content $commitfile $appveyor_repo_commit
Write-Output "Zipping $sourcedir to $zipfile"
7z a $zipfile $sourcedir
Write-Output "Uploading $zipfile"
Push-AppveyorArtifact $zipfile -DeploymentName source
Push-AppveyorArtifact $packagefile -DeploymentName package
Push-AppveyorArtifact "$($packagefile).md5" -DeploymentName package
}
on_finish:
- ps: |
Set-Location $env:appveyor_build_folder
Get-ChildItem $env:appveyor_build_folder\build\*.log | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName logs }