-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
40 lines (31 loc) · 1.08 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
image: Visual Studio 2022
branches:
only:
- master
version: 5.1.{build}
init:
- cmd: git config --global core.autocrlf true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(appveyor_build_version)
package_version: $(appveyor_build_version)
assembly_version: $(appveyor_build_version)
file_version: $(appveyor_build_version)
informational_version: $(appveyor_build_version)
before_build:
- cmd: dotnet --version
- cmd: nuget restore "./TheGodfather.sln"
- cmd: dotnet restore ./TheGodfather/TheGodfather.csproj --verbosity m
clone_depth: 1
test_script:
- cmd: dotnet restore ./TheGodfather.Tests/TheGodfather.Tests.csproj --verbosity m
- cmd: cd TheGodfather.Tests
- cmd: dotnet test
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL
deploy: false