File tree 2 files changed +37
-11
lines changed
2 files changed +37
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace ClosedXML.Report.Excel
8
8
{
9
9
public class Subtotal : IDisposable
10
10
{
11
- private IXLRange _range ;
11
+ private readonly IXLRange _range ;
12
12
private readonly bool _summaryAbove ;
13
13
private bool _pageBreaks ;
14
14
private Func < string , string > _getGroupLabel ;
@@ -37,10 +37,7 @@ public Subtotal(IXLRange range, bool summaryAbove)
37
37
}
38
38
}
39
39
40
- public SubtotalGroup [ ] Groups
41
- {
42
- get { return _groups . ToArray ( ) ; }
43
- }
40
+ public SubtotalGroup [ ] Groups => _groups . ToArray ( ) ;
44
41
45
42
public SubtotalGroup AddGrandTotal ( SubtotalSummaryFunc [ ] summaries )
46
43
{
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ version: 0.2.0.{build}
5
5
pull_requests :
6
6
do_not_increment_build_number : true
7
7
8
- image : Visual Studio 2017
8
+ os : Visual Studio 2019
9
+ image : Visual Studio 2019
10
+ skip_branch_with_pr : true
9
11
10
12
environment :
11
13
AppVeyor : APPVEYOR
@@ -42,19 +44,46 @@ dotnet_csproj:
42
44
file_version : ' $(fileVersion)'
43
45
informational_version : ' $(productVersion)'
44
46
47
+
48
+ # platform: Any CPU
49
+ configuration :
50
+ - Release
51
+ - Release.Signed
52
+
45
53
before_build :
54
+ - cmd : nuget update -self
46
55
- nuget restore
47
56
48
57
build :
49
58
verbosity : minimal
50
59
51
60
test_script :
52
61
- 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 ../../../
57
66
58
67
artifacts :
59
- - path : ClosedXML.Report/bin/%CONFIGURATION%/*.nupkg
68
+ - path : ClosedXML.Report/bin/%CONFIGURATION%/*.zip
60
69
- 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
You can’t perform that action at this time.
0 commit comments