File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ after_build:
6
6
- " SET PATH=C:\\ Python34;C:\\ Python34\\ Scripts;%PATH%"
7
7
- pip install codecov
8
8
- codecov -f "./artifacts/coverage/coverage.xml"
9
+ artifacts :
10
+ - path : ./artifacts/nuget/*.nupkg
Original file line number Diff line number Diff line change @@ -123,15 +123,33 @@ Task("Coverage")
123
123
System . IO . File . WriteAllText ( artifacts + "/coverage/coverage.xml" , withBom . Replace ( _byteOrderMarkUtf8 , "" ) ) ;
124
124
} ) ;
125
125
126
- Task ( "GitVersion" )
126
+ Task ( "Pack" )
127
+ . IsDependentOn ( "Build" )
127
128
. Does ( ( ) => {
129
+ EnsureDirectoryExists ( artifacts + "/nuget" ) ;
130
+ foreach ( var project in GetFiles ( "src/*/*.csproj" ) )
131
+ DotNetCorePack ( project . FullPath , new DotNetCorePackSettings
132
+ {
133
+ NoBuild = true ,
134
+ Configuration = configuration ,
135
+ EnvironmentVariables = GitVersionEnvironmentVariables ,
136
+ OutputDirectory = artifacts + "/nuget"
137
+ } ) ;
138
+ } ) ;
128
139
140
+ Task ( "GitVersion" )
141
+ . Does ( ( ) => {
142
+ GitVersion ( new GitVersionSettings ( ) {
143
+ OutputType = GitVersionOutput . BuildServer
144
+ } ) ;
129
145
} ) ;
130
146
131
147
Task ( "Default" )
148
+ . IsDependentOn ( "GitVersion" )
132
149
. IsDependentOn ( "Clean" )
133
150
. IsDependentOn ( "Build" )
134
151
. IsDependentOn ( "Test" )
135
- . IsDependentOn ( "Coverage" ) ;
152
+ . IsDependentOn ( "Coverage" )
153
+ . IsDependentOn ( "Pack" ) ;
136
154
137
155
RunTarget ( target ) ;
You can’t perform that action at this time.
0 commit comments