forked from github/VisualStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
75 lines (65 loc) · 1.97 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
os: Visual Studio 2019 Preview
version: '2.10.3.{build}'
skip_tags: true
install:
- choco install --no-progress BCC-MSBuildLog
- choco install --no-progress BCC-Submission
- ps: |
$full_build = Test-Path env:GHFVS_KEY
$forVSInstaller = $env:BUILD_TYPE -eq "vsinstaller"
$forPackage = $env:BUILD_TYPE -eq "package"
$package = $full_build -and ($env:APPVEYOR_PULL_REQUEST_NUMBER -or $forVSInstaller -or $forPackage)
$message = "Building "
if ($package) { $message += "and packaging "}
$message += "version " + $env:APPVEYOR_BUILD_NUMBER + " "
if ($full_build) { $message += "(full build)" } else { $message += "(partial build)" }
if ($forVSInstaller) { $message += " for the VS installer" }
Write-Host $message
git submodule init
git submodule sync
if ($full_build) {
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
$fileContent += $env:GHFVS_KEY.Replace(' ', "`n")
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
} else {
git submodule deinit script
}
git submodule update --recursive --force
Write-Host "Completed AppVeyor Install"
build_script:
- ps: scripts\build.ps1 -AppVeyor -Package:$package -BuildNumber:$env:APPVEYOR_BUILD_NUMBER -ForVSInstaller:$forVSInstaller
test:
categories:
except:
- Timings
on_success:
- ps: |
if ($package) {
Write-Host "Signing and packaging"
script\Sign-Package -AppVeyor -ForVSInstaller:$forVSInstaller
}
for:
-
branches:
except:
- /releases/.*-vsinstaller/
environment:
matrix:
- BUILD_TYPE: normal
-
branches:
only:
- /releases/.*-vsinstaller/
environment:
matrix:
- BUILD_TYPE: package
- BUILD_TYPE: vsinstaller
-
branches:
only:
- master
- /releases/(?:(?!-vsinstaller).)*?/
environment:
matrix:
- BUILD_TYPE: package