-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathappveyor.yml
44 lines (43 loc) · 1.17 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
version: 0.7.{build}-alpha
image: Visual Studio 2017
configuration: Release
platform: Any CPU
cache: src/packages
branches:
only:
- master
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_file_version: '{version}'
assembly_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- ps: |
function UpdateProjectVersion($xmlPath, $version)
{
$xml = [xml](get-content $xmlPath)
$propertyGroup = $xml.Project.PropertyGroup | Where { $_.Version}
$propertyGroup.Version = $version
$xml.Save($xmlPath)
}
UpdateProjectVersion "$env:appveyor_build_folder/src/Lime.Protocol/Lime.Protocol.csproj" $env:appveyor_build_version
UpdateProjectVersion "$env:appveyor_build_folder/src/Lime.Messaging/Lime.Messaging.csproj" $env:appveyor_build_version
- dotnet restore src/Lime.sln
build:
parallel: true
project: src/Lime.sln
verbosity: normal
test:
assemblies:
- '**\*Tests.dll'
categories:
except:
- 'Redis'
artifacts:
- path: '**\Lime*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: PXJBxwlPQNC3BnaP7QqLS+coPAD6PcnVD26OMaNEqM2Am0p8oT69ptO0y7G/nWBH
skip_symbols: false