forked from rnwood/smtp4dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
46 lines (46 loc) · 1.47 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
version: 3.0.0-alpha-{build}
os: Visual Studio 2015
configuration: Release
environment:
matrix:
- RUNTIME: win7-x64
FRAMEWORK: net461
- RUNTIME: win7-x86
FRAMEWORK: net461
- RUNTIME: ubuntu.16.04-x64
FRAMEWORK: netcoreapp1.0
- RUNTIME: osx.10.10-x64
FRAMEWORK: netcoreapp1.0
assembly_info:
patch: true
file: '**\SolutionInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
nuget:
account_feed: true
project_feed: true
install:
- cmd: |
dotnet restore
npm install -g gulp bower
build_script:
- cmd: dotnet build Rnwood.Smtp4dev -c %Configuration% -r %RUNTIME% -f %FRAMEWORK%
after_build:
- ps: |
$versionsuffix=$("{0:D4}" -f [convert]::ToInt32($env:APPVEYOR_BUILD_NUMBER, 10))
dotnet pack Rnwood.SmtpServer -c $env:Configuration --version-suffix $versionsuffix
get-item Rnwood.SmtpServer\bin\$($env:Configuration)\*.nupkg | foreach-object { appveyor PushArtifact $_.FullName }
dotnet publish Rnwood.Smtp4dev -c $env:Configuration -r $env:Runtime --version-suffix $versionsuffix
build:
publish_nuget: false
publish_nuget_symbols: false
parallel: true
verbosity: minimal
artifacts:
- path: Rnwood.Smtp4dev\bin\$(configuration)\$(framework)\$(runtime)\publish
name: Smtp4dev-$($runtime)-v$(appveyor_build_version)
type: zip
- path: Rnwood.SmtpServer\bin\$(configuration)\*.nupkg
test_script:
- cmd: dotnet test Rnwood.SmtpServer.Tests -f %FRAMEWORK%