forked from DiscUtils/DiscUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (54 loc) · 2.03 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
image: Visual Studio 2019
install:
- choco install gitversion.portable -pre -y
before_build:
- ps: >-
$version = ConvertFrom-Json $($(GitVersion) -join "")
$content = Get-Content .\Version.template.props -Raw;
$content = $content.Replace("&InformationalVersion&", $version.InformationalVersion);
$content = $content.Replace("&FileVersion&", $version.AssemblySemFileVer);
$content = $content.Replace("&AssemblyVersion&", $version.AssemblySemVer);
$content = $content.Replace("&NugetVersion&", $version.NuGetVersion);
Set-Content .\Version.props $content;
Update-AppveyorBuild -Version $version.NuGetVersion
- msbuild /t:Restore /Verbosity:Minimal
build_script:
- cmd: msbuild /t:build /p:Configuration=Release /Verbosity:Minimal
test_script:
- cmd: dotnet test Tests\LibraryTests\LibraryTests.csproj -c Release --no-build --logger:trx -- RunConfiguration.TargetPlatform="x64" RunConfiguration.DisableParallelization="true"
artifacts:
- path: '**\*.nupkg'
- path: '**\*.snupkg'
for:
- branches:
only:
- master
after_test:
- cmd: msbuild /t:pack /p:Configuration=Release /p:IncludeSymbols=true /Verbosity:Minimal /p:NoBuild=true
deploy:
- provider: NuGet
api_key:
secure: +TsnIUGzvXRBVjVx7LwxXNt3AsqNimT9ud6dAfRcdViIhn23TWEZ3yJwI2FEPGRw
on:
branch: master
after_test:
- cmd: msbuild /t:pack /p:Configuration=Release /p:IncludeSymbols=true /Verbosity:Minimal /p:NoBuild=true
deploy:
- provider: NuGet
api_key:
secure: 1zdVvAQJbpFDsKJS/TXQLc6GI6SlZueTSCcL7xbK6QMisvL8V5nhLFgrceLfp1Ak
on:
# Only push on tagged master commits
branch: master
APPVEYOR_REPO_TAG: true
- provider: GitHub
description: 'Automated release from Appveyor'
auth_token:
secure: PzHMfZUHtddDN/+S4C0K6emflG2EpgynNlu/p/T4hizDb8M7UChpohLUSd4BkFRU
artifact: /.*\.s?nupkg/
draft: false
prerelease: false
on:
# Only add releases on tagged master commits
branch: master
APPVEYOR_REPO_TAG: true