-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
64 lines (52 loc) · 1.83 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
version: '1.1.{build}'
configuration:
- Debug
- Release
platform: Any CPU
image: Visual Studio 2017
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
# .NET Core project file patching - This will update the version of the file
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
# Initialize
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- dotnet build "src\CoreMatchers" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet build "src\StandardMatchers" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
after_build:
- dotnet pack "src\CoreMatchers" -c %CONFIGURATION% --no-build -o artifacts
- dotnet pack "src\StandardMatchers" -c %CONFIGURATION% --no-build -o artifacts
# Dont need this yet because we are publishing a full app, only a library
#- dotnet publish "src\CoreMatchers" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts\CoreMatchers
test_script:
- dotnet test "test\CoreMatchers.Tests" -c %CONFIGURATION%
- dotnet test "test\StandardMatchers.Tests" -c %CONFIGURATION%
artifacts:
- path: src\**\artifacts\**\*.*
cache:
- '%USERPROFILE%\.nuget\packages'
# Run the demo to show that it works
#on_finish:
#- dotnet artifacts\ConsoleApplication\ConsoleApplication.dll
# Slack notification
notifications:
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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
on_build_failure: true
on_build_success: false
on_build_status_changed: true
# Publish the nuget package to AppVeyors account and project feeds
nuget:
account_feed: true
project_feed: true