Skip to content

Commit 06d6afe

Browse files
authored
appveyor changes (#167)
* appveyor changes
1 parent 52c077f commit 06d6afe

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

ClosedXML.Report/Excel/Subtotal.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ClosedXML.Report.Excel
88
{
99
public class Subtotal : IDisposable
1010
{
11-
private IXLRange _range;
11+
private readonly IXLRange _range;
1212
private readonly bool _summaryAbove;
1313
private bool _pageBreaks;
1414
private Func<string, string> _getGroupLabel;
@@ -37,10 +37,7 @@ public Subtotal(IXLRange range, bool summaryAbove)
3737
}
3838
}
3939

40-
public SubtotalGroup[] Groups
41-
{
42-
get { return _groups.ToArray(); }
43-
}
40+
public SubtotalGroup[] Groups => _groups.ToArray();
4441

4542
public SubtotalGroup AddGrandTotal(SubtotalSummaryFunc[] summaries)
4643
{

appveyor.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ version: 0.2.0.{build}
55
pull_requests:
66
do_not_increment_build_number: true
77

8-
image: Visual Studio 2017
8+
os: Visual Studio 2019
9+
image: Visual Studio 2019
10+
skip_branch_with_pr: true
911

1012
environment:
1113
AppVeyor: APPVEYOR
@@ -42,19 +44,46 @@ dotnet_csproj:
4244
file_version: '$(fileVersion)'
4345
informational_version: '$(productVersion)'
4446

47+
48+
# platform: Any CPU
49+
configuration:
50+
- Release
51+
- Release.Signed
52+
4553
before_build:
54+
- cmd: nuget update -self
4655
- nuget restore
4756

4857
build:
4958
verbosity: minimal
5059

5160
test_script:
5261
- dotnet test tests/ClosedXML.Report.Tests
53-
54-
configuration:
55-
- Release
56-
- Release.Signed
62+
after_build:
63+
- cd ClosedXML.Report/bin/%CONFIGURATION%/
64+
- 7z a ClosedXML.Report_%productVersion%.zip */ClosedXML.Report.dll
65+
- cd ../../../
5766

5867
artifacts:
59-
- path: ClosedXML.Report/bin/%CONFIGURATION%/*.nupkg
68+
- path: ClosedXML.Report/bin/%CONFIGURATION%/*.zip
6069
- path: ClosedXML.Report/bin/%CONFIGURATION%/*/ClosedXML.Report.dll
70+
- path: ClosedXML.Report/bin/%CONFIGURATION%/*.nupkg
71+
72+
nuget:
73+
project_feed: true
74+
disable_publish_on_pr: true
75+
76+
deploy:
77+
- provider: GitHub
78+
artifact: /.*\.(zip|nupkg)/
79+
auth_token:
80+
secure: pDyyONympYgPQfMzsAlP01i2i17xji0oFlz5sKVmM6n34/TieVjBjvUjSUFxNQEA
81+
draft: true
82+
on:
83+
APPVEYOR_REPO_TAG: true
84+
- provider: NuGet
85+
artifact: /.*\.nupkg/
86+
api_key:
87+
secure: GZMuY+C0BuVSLsTJ0b2oLNVNXdd8ffaFJapOaUDKlrfOLmrHc0S44AqSE6pjK1yC
88+
on:
89+
APPVEYOR_REPO_TAG: true

0 commit comments

Comments
 (0)