Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Add CI definition
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarypiatek committed Sep 20, 2019
1 parent e865a2e commit cc685a7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 1.12.{build}
image: Visual Studio 2017
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- ps: >-
function Set-VsixVersion {
param(
[Parameter(Mandatory=$true)]
[string]$manifestPath,
[Parameter(Mandatory=$true)]
[string]$Version
)
$manifestXml = [xml](Get-Content $manifestPath -Raw)
$manifestXml.PackageManifest.Metadata.Identity.Version = $Version
$manifestXml.save($manifestPath)
}
git submodule update --init --recursive
Set-VsixVersion -Version "$($env:APPVEYOR_BUILD_VERSION)" -manifestPath C:\projects\mappinggenerator\MappingGenerator\MappingGenerator\MappingGenerator.Vsix\source.extension.vsixmanifest
nuget restore MappingGenerator
dotnet restore MappingGenerator
build:
project: MappingGenerator\MappingGenerator.sln
verbosity: minimal
after_build:
- ps: Get-ChildItem MappingGenerator\MappingGenerator\MappingGenerator.Vsix\ -Recurse
artifacts:
- path: MappingGenerator\MappingGenerator\MappingGenerator.Vsix\bin\Release\MappingGenerator.vsix
name: MappingGenerator.vsix
- path: MappingGenerator\MappingGenerator\MappingGenerator\bin\Release\MappingGenerator.*.nupkg
name: MappingGenerator.nupkg

0 comments on commit cc685a7

Please sign in to comment.