File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 180
180
BuildInParallel =" true"
181
181
Condition =" '@(_SolutionBuildTargets)' != ''" />
182
182
183
+ <PropertyGroup Condition =" '$(UseCodecov)' == 'true'" >
184
+ <_CodecovPath >$(NuGetPackageRoot)codecov\$(CodecovVersion)\tools\Codecov.exe</_CodecovPath >
185
+ </PropertyGroup >
186
+
187
+ <ItemGroup Condition =" '$(UseCodecov)' == 'true'" >
188
+ <_CoverageReports Include =" $(ArtifactsTestResultsDir)*.coverage" />
189
+
190
+ <_CodecovArgs Include =" -f;@(_CoverageReports)" />
191
+ <_CodecovArgs Include =" -r;$(QualifiedRepoName)" Condition =" '$(QualifiedRepoName)' != ''" />
192
+ <_CodecovArgs Include =" --pr;$(ghprbPullId)" Condition =" '$(ghprbPullId)' != ''" />
193
+ <_CodecovArgs Include =" --branch;$(ghprbTargetBranch)" Condition =" '$(ghprbTargetBranch)' != ''" />
194
+ <_CodecovArgs Include =" -c;$(ghprbActualCommit)" Condition =" '$(ghprbActualCommit)' != ''" />
195
+ <_CodecovArgs Include =" -n;$(JOB_NAME)" Condition =" '$(JOB_NAME)' != ''" />
196
+ <_CodecovArgs Include =" --flag;$(Configuration)" Condition =" '$(Configuration)' != ''" />
197
+ </ItemGroup >
198
+
199
+ <Exec Condition =" '$(UseCodecov)' == 'true'"
200
+ Command =" " $(_CodecovPath)" @(_CodecovArgs, ' ')" />
201
+
183
202
<!--
184
203
Sign artifacts.
185
204
-->
Original file line number Diff line number Diff line change 23
23
<!-- Opt-in features -->
24
24
<UsingToolVSSDK Condition =" '$(UsingToolVSSDK)' == ''" >false</UsingToolVSSDK >
25
25
<UsingToolIbcOptimization Condition =" '$(UsingToolIbcOptimization)' == ''" >false</UsingToolIbcOptimization >
26
- <UsingOpenCover Condition =" '$(UsingOpenCover)' == ''" >false</UsingOpenCover >
26
+ <UsingCodecov Condition =" '$(UsingCodecov)' == ''" >false</UsingCodecov >
27
+ <UsingOpenCover Condition =" '$(UsingOpenCover)' == ''" >$(UsingCodecov)</UsingOpenCover >
27
28
28
29
<!-- Default versions -->
29
30
<MicroBuildPluginsSwixBuildVersion Condition =" '$(MicroBuildPluginsSwixBuildVersion)' == ''" >1.0.147</MicroBuildPluginsSwixBuildVersion >
43
44
<XUnitRunnerVisualStudioVersion Condition =" '$(XUnitRunnerVisualStudioVersion)' == ''" >$(XUnitVersion)</XUnitRunnerVisualStudioVersion >
44
45
<MicrosoftDotNetBuildTasksFeedVersion Condition =" '$(MicrosoftDotNetBuildTasksFeedVersion)' == ''" >2.1.0-prerelease-02419-01</MicrosoftDotNetBuildTasksFeedVersion >
45
46
47
+ <CodecovVersion Condition =" '$(CodecovVersion)' == ''" >1.0.3</CodecovVersion >
46
48
<OpenCoverVersion Condition =" '$(OpenCoverVersion)' == ''" >4.6.519</OpenCoverVersion >
47
49
</PropertyGroup >
48
50
Original file line number Diff line number Diff line change 35
35
<PackageReference Include =" RoslynTools.SignTool" Version =" $(RoslynToolsSignToolVersion)" />
36
36
<PackageReference Include =" RoslynTools.ModifyVsixManifest" Version =" $(RoslynToolsModifyVsixManifestVersion)" Condition =" '$(UsingToolVSSDK)' == 'true'" />
37
37
38
+ <PackageReference Include =" Codecov" Version =" $(CodecovVersion)" Condition =" '$(UsingCodecov)' == 'true'" />
38
39
<PackageReference Include =" OpenCover" Version =" $(OpenCoverVersion)" Condition =" '$(UsingOpenCover)' == 'true'" />
39
40
</ItemGroup >
40
41
</Project >
You can’t perform that action at this time.
0 commit comments