mirror of
https://github.com/maikebing/Gitea.VisualStudio.git
synced 2020-06-03 16:54:26 +00:00
28 lines
846 B
YAML
28 lines
846 B
YAML
version: 1.0.{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:
|
|
- git submodule sync --recursive
|
|
- git submodule update --init --recursive
|
|
- nuget restore GiteaVS.sln
|
|
- ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
|
|
- ps: Vsix-TokenReplacement src\common\SolutionInfo.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
|
|
|
|
build_script:
|
|
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
|
|
|
|
|
|
|
|
after_test:
|
|
- ps: Vsix-PushArtifacts | Vsix-PublishToGallery
|