-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
79 lines (64 loc) · 2.41 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
image: Visual Studio 2017
install:
- cmd: git submodule update --init --recursive
- ps: $env:VersionPrefix=(Select-Xml -Path ./Version.props -XPath "/Project/PropertyGroup/VersionPrefix").Node.'#text'
configuration: Debug
build: off
skip_branch_with_pr: true
skip_tags: true
environment:
is_prerelease: true
githubdeploy: false
VSuffix: "-alpha$(APPVEYOR_BUILD_NUMBER)"
before_build:
- cmd: msbuild /t:restore /p:Configuration=%configuration% /p:Version=%VersionPrefix%%VSuffix% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
build_script:
- cmd: msbuild /p:Configuration=%configuration% /p:Version=%VersionPrefix%%VSuffix% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test:
categories:
except:
- Performance
after_test:
- ps: dotnet test .\Tests\UnitTestImpromptuInterface\UnitTestImpromptuInterface.csproj -f netcoreapp2.0 --no-build --no-restore --filter=TestCategory!=Performance --logger="trx;LogFileName=testresults.trx" --configuration=$env:configuration
on_finish:
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\Tests\UnitTestImpromptuInterface\TestResults\testresults.trx))
deploy:
- provider: NuGet
server: https://www.myget.org/F/dynamitey-ci/api/v2/package
api_key:
secure: yKbBrG0QiTfXUvND1/cMMNHxH1Bgal5g7c0pWGwqvjCtKGTtWkpvE2KlZb6E2ZgB
skip_symbols: false
symbol_server: https://www.myget.org/F/dynamitey-ci/symbols/api/v2/package
- provider: GitHub
artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
tag: v$(VersionPrefix)$(VSuffix)
description: 'Release description'
auth_token:
secure: JyJYSgeJYFmkaFy7Gro2dQyv/fqZwz1EzJmp2Nf99H6HUpxNR7ilA/OGPcQk0pA8
draft: true
prerelease: $(is_prerelease)
on:
githubdeploy: true
artifacts:
- path: MarshalByRefProxy\bin\$(configuration)\*.nupkg
name: MarshalByRefProxy
for:
- branches:
except:
- /deploy-v.*/
- branches:
only:
- /deploy-v.*-beta.*/
environment:
VSuffix: "-beta$(APPVEYOR_BUILD_NUMBER)"
is_prerelease: true
githubdeploy: true
- branches:
only:
- /deploy-v[\d,.]*/
configuration: Release
environment:
VSuffix: ".$(APPVEYOR_BUILD_NUMBER)"
is_prerelease: false
githubdeploy: true