-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
87 lines (77 loc) · 2.25 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '1.0-build_{build}'
image: Visual Studio 2022
#skip_branch_with_pr: true
configuration: Debug
platform:
- Any CPU
branches:
only:
- master
- develop
- /\d*\.\d*\.\d*/
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(APPVEYOR_REPO_TAG_NAME)
package_version: $(APPVEYOR_REPO_TAG_NAME)
assembly_version: $(APPVEYOR_REPO_TAG_NAME)
file_version: $(APPVEYOR_REPO_TAG_NAME)
informational_version: $(APPVEYOR_REPO_TAG_NAME)
init:
- ps: git config --global core.autocrlf input
- ps: dotnet nuget locals http-cache -c
- ps: dotnet tool install --global coverlet.console
before_build:
- ps: ls
- ps: dotnet restore
- choco install opencover.portable
- choco install codecov
build:
project: Funx.sln
verbosity: minimal
test_script:
- ps: dotnet test tests/Funx/Funx.Tests.csproj --verbosity normal
# - ps: ls ./tests/Funx/bin/
# - ps: ls ./tests/Funx/bin/Debug
# - ps: ls ./tests/Funx/bin/Debug/netcoreapp3.1
- ps: coverlet .\tests\Funx\bin\Debug\net8.0\Funx.Tests.dll --target "dotnet" --targetargs "test --no-build" --format "opencover" --output "./funx_coverage.xml"
- codecov -f "funx_coverage.xml"
after_test:
- ps: dotnet build src/Funx/Funx.csproj -c Release
- ps: dotnet pack src/Funx/Funx.csproj --no-restore --no-build -c Release -o ./publish
- ps: ls ./publish
artifacts:
- path: '**\*.nupkg'
deploy:
-
provider: NuGet
api_key:
secure: u+tz8/wLjX6sQ/KNA4jNZiihA5nXhWQx8JjUDt0kLlg8VBJHEzToNL3A9miswDAf
skip_symbols: false
artifact: /.*\.nupkg/
#for:
#-
# branches:
# only:
# - /\d+\.\d+\.\d+/
#
# configuration: Release
#
# test_script:
# - ps: dotnet test tests/Funx/Funx.Tests.csproj --verbosity normal
# - ps: coverlet .\tests\Funx\bin\Release\net8.0\Funx.Tests.dll --target "dotnet" --targetargs "test --no-build" --format "opencover" --output "./funx_coverage.xml"
# - codecov -f "funx_coverage.xml"
#
# after_test:
# - ps: dotnet pack src/Funx/Funx.csproj --no-restore --no-build -c Release -o ./publish
# - ps: ls ./publish
#
# artifacts:
# - path: '**\*.nupkg'
#
# deploy:
# provider: NuGet
# api_key:
# secure: u+tz8/wLjX6sQ/KNA4jNZiihA5nXhWQx8JjUDt0kLlg8VBJHEzToNL3A9miswDAf
# skip_symbols: false
# artifact: /.*\.nupkg/