forked from mathpaquette/IQFeed.CSharpApiClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (49 loc) · 1.77 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
49
50
51
52
53
54
55
56
57
58
59
60
image: Visual Studio 2019
version: '{build}'
install:
- ps: >-
$FileVersion = Get-Content $env:appveyor_build_folder\VERSION
$Version = If ($env:appveyor_repo_branch -eq "release") {"$FileVersion"} Else {"$FileVersion.$env:appveyor_build_number"}
Update-AppveyorBuild -Version $Version
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
configuration: Release
before_build:
- nuget restore
- dotnet restore
test_script:
- cmd: dotnet test .\src\IQFeed.CSharpApiClient.Tests\IQFeed.CSharpApiClient.Tests.csproj
- cmd: dotnet test .\src\IQFeed.CSharpApiClient.Extensions.Tests\IQFeed.CSharpApiClient.Extensions.Tests.csproj
- cmd: dotnet test .\src\IQFeed.CSharpApiClient.Extensions.Tests.Integration\IQFeed.CSharpApiClient.Extensions.Tests.Integration.csproj
build:
project: IQFeed.CSharpApiClient.sln
publish_nuget: true
publish_nuget_symbols: true
verbosity: normal
deploy:
# Deploying to NuGet feed (MyGet.org)
- provider: NuGet
name: MyGet
server: https://www.myget.org/F/iqfeedcsharpapiclient/api/v2/package
api_key:
secure: UBKXVuF4UwMea9mcl8hGLaHxOTBu3GNgzPvuEUWIzU+Nf6a8eTtBRyKITBepZl6i
skip_symbols: false
symbol_server: https://www.myget.org/F/iqfeedcsharpapiclient/symbols/api/v2/package
artifact: /.*\.nupkg/
# Deploying to NuGet feed (NuGet.org)
- provider: NuGet
name: NuGet
on:
branch: release
server: https://www.nuget.org/api/v2/package
api_key:
secure: zWdGIvNfTP1AU9/i1RnRIT3/Zi6pll/9MTWmr9Ur1iZWzzalEQ5RgyIfwammhm02
skip_symbols: true
symbol_server: https://nuget.smbsrc.net/
artifact: /.*\.nupkg/