forked from BrighterCommand/Brighter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (61 loc) · 3.67 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
version: 7.0.{build}-beta
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
# blacklist
except:
- gh-pages
skip_tags: true
configuration:
#- Debug
- Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: 7.0.0.0
assembly_file_version: 7.0.{build}
assembly_informational_version: '{version}'
nuget:
project_feed: true
disable_publish_on_pr: true
before_build:
- cmd: dotnet --info
- cmd: cd Brighter
- cmd: dotnet restore --verbosity Minimal
- ps: |
Get-ChildItem . -Recurse -Include project.json | ForEach-Object {(Get-Content $PSItem) -Replace "`"version`": `"1\.0\.0-\*`"","`"version`": `"$env:APPVEYOR_BUILD_VERSION`"" | Set-Content -Path $PSItem;}
build_script:
- cmd: dotnet build -c Release */**/project.json
after_build:
- cmd: dotnet pack paramore.brighter.commandprocessor/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.serviceactivator/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.commandstore.mssql/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.commandstore.sqlite/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messagestore.eventstore/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messagestore.mssql/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messagestore.sqlite/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messaginggateway.awssqs/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messaginggateway.azureservicebus/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messaginggateway.restms/project.json --configuration Release --no-build --output nupkgs
- cmd: dotnet pack paramore.brighter.commandprocessor.messaginggateway.rmq/project.json --configuration Release --no-build --output nupkgs
test_script:
- cmd: dotnet test paramore.brighter.commandprocessor.tests.nunit/project.json --where "cat!=MSSQL && cat!=EventStore && cat!=AWS && cat!=RESTMS && cat!=RMQ" --result=brightertestresults.xml
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\brightertestresults.xml))
- cmd: dotnet test paramore.brighter.commandprocessor.viewer.tests/project.json --where "cat!=MSSQL && cat!=EventStore && cat!=AWS && cat!=RESTMS && cat!=RMQ" --result=viewertestresults.xml
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\viewertestresults.xml))
- cmd: dotnet test Examples/TasksTests/project.json --where "cat!=MSSQL && cat!=EventStore && cat!=AWS && cat!=RESTMS && cat!=RMQ" --result=tasktestresults.xml
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tasktestresults.xml))
artifacts:
# pushing all *.nupkg files in build directory recursively
- path: '/**/nupkgs/*.nupkg'
cache:
- '%USERPROFILE%\.nuget\packages'
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/182838afa865c8e16f72
on_build_success: true
on_build_failure: true
on_build_status_changed: true