forked from CoatiSoftware/vs-sourcetrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (23 loc) · 1.19 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
version: 2.1.1.{build}
image: Visual Studio 2017
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
assembly_info:
patch: true
file: '**\AssemblyInfo*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- nuget restore
- ps: Vsix-IncrementVsixVersion -versionType "revision" | Vsix-UpdateBuildVersion
build_script:
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
# This command installes the extension to Visual Studio 2017 (requied for running the integration tests)
#before_test:
# - cmd: START /WAIT "" "%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Community\Common7\IDE\VSIXInstaller.exe" /q "C:\projects\vs-sourcetrail\SourcetrailExtension\bin\Release\vs-sourcetrail.vsix"
test_script:
- ps: VSTest.Console.exe C:\projects\vs-sourcetrail\SourcetrailExtensionTests\bin\Release\SourcetrailExtension.Tests.dll
after_test:
- ps: if ($env:APPVEYOR_REPO_BRANCH -eq 'master' -and $env:APPVEYOR_REPO_TAG -eq 'true') { Vsix-PublishToGallery }
- ps: Vsix-PushArtifacts