This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
appveyor.yml
48 lines (47 loc) · 2.42 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
# AppVeyor version is just a placeholder. Version is retrieved from source.extension.vsixmanifest and is automatically updated on build.
version: '0.0.0.{build}'
os: Windows Server 2012 R2
clone_depth: 5
install:
# Download and execute madskristensen AppVeyor VSIX ExtensionScripts in order to update revision number before project build
- ps: (New-Object System.Net.WebClient).DownloadString("https://raw.githubusercontent.com/netspiri/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
cache:
# Retain NuGet packages unless packages.config is not updated to possibly minimize subsequent build times
- packages -> **\packages.config
configuration:
- Debug
- Release
before_build:
# Restore NuGet package dependencies for proper compilation
- cmd: nuget restore
# Updates the version number in the .vsixmanifest and updates the AppVeyor build number to match
# If the build is triggered due to a tag, version number is not incremented.
- ps: |
$revision = $env:APPVEYOR_BUILD_NUMBER
Vsix-IncrementVsixVersion .\BoostTestPlugin\source.extension.vsixmanifest $revision revision | Vsix-UpdateBuildVersion -updateOnPullRequests
build:
verbosity: minimal
test:
assemblies:
- BoostTestAdapterNunit\bin\$(configuration)\BoostTestAdapterNunit.dll
- VisualStudioAdapterNunit\bin\$(configuration)\VisualStudioAdapterNunit.dll
artifacts:
- path: BoostTestPlugin\bin\$(configuration)\BoostUnitTestAdapter.vsix
on_failure:
- cmd: mkdir C:\logs
# Retain all environment variables which are currently specified
- cmd: SET > C:\logs\env-vars.log
# Reference: http://www.appveyor.com/docs/installed-software
# Retain the list of installed software available on the build machine
- ps: |
$x64items = @(Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
$x64items + @(Get-ChildItem "HKLM:SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Uninstall") `
| ForEach-object { Get-ItemProperty Microsoft.PowerShell.Core\Registry::$_ } `
| Sort-Object -Property DisplayName `
| Select-Object -Property DisplayName,DisplayVersion > C:\logs\installed-software.log
# Zip the logs folder
- ps: |
Add-Type -Assembly System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::CreateFromDirectory("C:\logs", "C:\logs.zip", [System.IO.Compression.CompressionLevel]::Optimal, $false)
# Post the zipped logs as an artifact for later inspection
- ps: Push-AppveyorArtifact "C:\logs.zip"