forked from appveyor/build-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-bootstrap-windows-images.yml
70 lines (56 loc) · 2.22 KB
/
appveyor-bootstrap-windows-images.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
environment:
matrix:
# - job_name: VS 2019 on GCE us-central1
# APPVEYOR_BUILD_WORKER_IMAGE: base-windows-server-2019-dc-gce-us-central1
# APPVEYOR_BAKE_IMAGE: vs2019-${APPVEYOR_REPO_BRANCH}-gce-us-central1
# - job_name: VS 2019 on Azure West US
# APPVEYOR_BUILD_WORKER_IMAGE: base-windows-server-2019-dc-azure-westus
# APPVEYOR_BAKE_IMAGE: vs2019-${APPVEYOR_REPO_BRANCH}-azure-westus
- job_name: VS 2019 on Hyper-V
APPVEYOR_BUILD_WORKER_IMAGE: base-windows-server-2019-dc-hyperv
APPVEYOR_BAKE_IMAGE: vs2019-${APPVEYOR_REPO_BRANCH}
init:
- appveyor version
- ps: $ErrorActionPreference = 'Stop'
- ps: $env:cloud_type = (Get-ItemProperty "HKLM:\Software\AppVeyor\Build Agent").Mode
- ps: 'Write-Host "OS Build: $((Get-CimInstance Win32_OperatingSystem).BuildNumber)"'
clone_folder: '%USERPROFILE%\image-bake-scripts'
clone_script:
- ps: Invoke-WebRequest "https://github.com/appveyor/build-images/archive/$($env:APPVEYOR_REPO_BRANCH).zip" -OutFile "$env:temp\scripts.zip"
- ps: Expand-Archive -Path "$env:temp\scripts.zip" -DestinationPath "$env:temp\scripts" -Force
- ps: Copy-Item -Path "$env:temp\scripts\build-images-$($env:APPVEYOR_REPO_BRANCH)\scripts\Windows\*" -Destination $env:APPVEYOR_BUILD_FOLDER -Recurse
build_script:
- ps: .\init_server.ps1
- ps: if ($env:cloud_type -eq 'Azure') { .\extend_system_volume.ps1 }
# Restart VM
- ps: Start-Sleep -s 5; Restart-Computer
- ps: Start-Sleep -s 5
- appveyor version
- ps: .\install_path_utils.ps1
- ps: .\install_powershell_core.ps1
- ps: .\install_powershell_get.ps1
- ps: .\install_7zip.ps1
- ps: .\install_chocolatey.ps1
- ps: .\install_webpi.ps1
- ps: .\install_nuget.ps1
- ps: .\install_pstools.ps1
# - ps: .\install_git.ps1
# - ps: .\install_git_lfs.ps1
# - ps: .\install_mercurial.ps1
# - ps: .\install_subversion.ps1
- ps: .\add_ssh_known_hosts.ps1
# Restart VM
- ps: Start-Sleep -s 5; Restart-Computer
- ps: Start-Sleep -s 5
#- ps: .\install_vs2019.ps1
- ps: .\install_nunit3.ps1
- ps: .\install_cmake.ps1
- ps: .\install_llvm.ps1
#- ps: .\install_llvm_extension_vs2019.ps1
- ps: .\install_perl.ps1
- ps: .\disable_windows_background_services.ps1
- ps: .\enforce_windows_firewall.ps1
- ps: .\cleanup_windows.ps1
# on_failure:
# - ps: Start-Sleep -s 1200
test: off