|
1 | | -os: Visual Studio 2017 |
2 | | -version: '2.10.0.{build}' |
3 | | -skip_tags: true |
4 | | - |
5 | | -install: |
6 | | -- choco install --no-progress BCC-MSBuildLog |
7 | | -- choco install --no-progress BCC-Submission |
8 | | -- ps: | |
9 | | - $full_build = Test-Path env:GHFVS_KEY |
10 | | - $forVSInstaller = $env:BUILD_TYPE -eq "vsinstaller" |
11 | | - $forPackage = $env:BUILD_TYPE -eq "package" |
12 | | - $package = $full_build -and ($env:APPVEYOR_PULL_REQUEST_NUMBER -or $forVSInstaller -or $forPackage) |
13 | | -
|
14 | | - $message = "Building " |
15 | | - if ($package) { $message += "and packaging "} |
16 | | - $message += "version " + $env:APPVEYOR_BUILD_NUMBER + " " |
17 | | -
|
18 | | - if ($full_build) { $message += "(full build)" } else { $message += "(partial build)" } |
19 | | - if ($forVSInstaller) { $message += " for the VS installer" } |
20 | | - Write-Host $message |
21 | | -
|
22 | | - git submodule init |
23 | | - git submodule sync |
24 | | -
|
25 | | - if ($full_build) { |
26 | | - $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n" |
27 | | - $fileContent += $env:GHFVS_KEY.Replace(' ', "`n") |
28 | | - $fileContent += "`n-----END RSA PRIVATE KEY-----`n" |
29 | | - Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent |
30 | | - } else { |
31 | | - git submodule deinit script |
32 | | - } |
33 | | -
|
34 | | - git submodule update --recursive --force |
35 | | - nuget restore GitHubVS.sln |
36 | | -
|
37 | | -build_script: |
38 | | -- ps: scripts\build.ps1 -AppVeyor -Package:$package -BuildNumber:$env:APPVEYOR_BUILD_NUMBER -ForVSInstaller:$forVSInstaller |
39 | | - |
40 | | -test: |
41 | | - categories: |
42 | | - except: |
43 | | - - Timings |
44 | | - |
45 | | -on_success: |
46 | | -- ps: | |
47 | | - if ($package) { |
48 | | - Write-Host "Signing and packaging" |
49 | | - script\Sign-Package -AppVeyor -ForVSInstaller:$forVSInstaller |
50 | | - } |
51 | | -
|
52 | | -for: |
53 | | -- |
54 | | - branches: |
55 | | - except: |
56 | | - - /releases/.*-vsinstaller/ |
57 | | - environment: |
58 | | - matrix: |
59 | | - - BUILD_TYPE: normal |
60 | | -- |
61 | | - branches: |
62 | | - only: |
63 | | - - /releases/.*-vsinstaller/ |
64 | | - environment: |
65 | | - matrix: |
66 | | - - BUILD_TYPE: package |
67 | | - - BUILD_TYPE: vsinstaller |
68 | | -- |
69 | | - branches: |
70 | | - only: |
71 | | - - master |
72 | | - - /releases/(?:(?!-vsinstaller).)*?/ |
73 | | - environment: |
74 | | - matrix: |
75 | | - - BUILD_TYPE: package |
| 1 | +os: Visual Studio 2019 Preview |
| 2 | +version: '2.10.1.{build}' |
| 3 | +skip_tags: true |
| 4 | + |
| 5 | +install: |
| 6 | +- choco install --no-progress BCC-MSBuildLog |
| 7 | +- choco install --no-progress BCC-Submission |
| 8 | +- ps: | |
| 9 | + $full_build = Test-Path env:GHFVS_KEY |
| 10 | + $forVSInstaller = $env:BUILD_TYPE -eq "vsinstaller" |
| 11 | + $forPackage = $env:BUILD_TYPE -eq "package" |
| 12 | + $package = $full_build -and ($env:APPVEYOR_PULL_REQUEST_NUMBER -or $forVSInstaller -or $forPackage) |
| 13 | +
|
| 14 | + $message = "Building " |
| 15 | + if ($package) { $message += "and packaging "} |
| 16 | + $message += "version " + $env:APPVEYOR_BUILD_NUMBER + " " |
| 17 | +
|
| 18 | + if ($full_build) { $message += "(full build)" } else { $message += "(partial build)" } |
| 19 | + if ($forVSInstaller) { $message += " for the VS installer" } |
| 20 | + Write-Host $message |
| 21 | +
|
| 22 | + git submodule init |
| 23 | + git submodule sync |
| 24 | +
|
| 25 | + if ($full_build) { |
| 26 | + $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n" |
| 27 | + $fileContent += $env:GHFVS_KEY.Replace(' ', "`n") |
| 28 | + $fileContent += "`n-----END RSA PRIVATE KEY-----`n" |
| 29 | + Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent |
| 30 | + } else { |
| 31 | + git submodule deinit script |
| 32 | + } |
| 33 | +
|
| 34 | + git submodule update --recursive --force |
| 35 | + Write-Host "Completed AppVeyor Install" |
| 36 | +
|
| 37 | +build_script: |
| 38 | +- ps: scripts\build.ps1 -AppVeyor -Package:$package -BuildNumber:$env:APPVEYOR_BUILD_NUMBER -ForVSInstaller:$forVSInstaller |
| 39 | + |
| 40 | +test: |
| 41 | + categories: |
| 42 | + except: |
| 43 | + - Timings |
| 44 | + |
| 45 | +on_success: |
| 46 | +- ps: | |
| 47 | + if ($package) { |
| 48 | + Write-Host "Signing and packaging" |
| 49 | + script\Sign-Package -AppVeyor -ForVSInstaller:$forVSInstaller |
| 50 | + } |
| 51 | +
|
| 52 | +for: |
| 53 | +- |
| 54 | + branches: |
| 55 | + except: |
| 56 | + - /releases/.*-vsinstaller/ |
| 57 | + environment: |
| 58 | + matrix: |
| 59 | + - BUILD_TYPE: normal |
| 60 | +- |
| 61 | + branches: |
| 62 | + only: |
| 63 | + - /releases/.*-vsinstaller/ |
| 64 | + environment: |
| 65 | + matrix: |
| 66 | + - BUILD_TYPE: package |
| 67 | + - BUILD_TYPE: vsinstaller |
| 68 | +- |
| 69 | + branches: |
| 70 | + only: |
| 71 | + - master |
| 72 | + - /releases/(?:(?!-vsinstaller).)*?/ |
| 73 | + environment: |
| 74 | + matrix: |
| 75 | + - BUILD_TYPE: package |
0 commit comments