Skip to content

Commit 41fff7b

Browse files
Fix CodeCov detection
1 parent 462f789 commit 41fff7b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

msbuild/props/SixLabors.Global.props

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,14 @@
1414
<!-- Determined by environmental settings set in build-and-test.yml-->
1515
<PropertyGroup>
1616
<IsContinuousIntegration Condition="'$(CI)' == 'true'">true</IsContinuousIntegration>
17-
<IsCodeCoverage Condition="'$(codecov)' != ''">true</IsCodeCoverage>
17+
<IsCodeCoverage Condition="'$(codecov)' == 'true'">true</IsCodeCoverage>
18+
</PropertyGroup>
19+
<PropertyGroup Condition="'$(IsContinuousIntegration)'=='true'">
20+
<DefineConstants>$(DefineConstants);ENV_CI</DefineConstants>
21+
</PropertyGroup>
22+
<PropertyGroup Condition="'$(IsCodeCoverage)'=='true'">
23+
<DefineConstants>$(DefineConstants);ENV_CODECOV</DefineConstants>
1824
</PropertyGroup>
19-
<Choose>
20-
<When Condition="'$(IsContinuousIntegration)'=='true'">
21-
<PropertyGroup>
22-
<DefineConstants>$(DefineConstants);ENV_CI</DefineConstants>
23-
</PropertyGroup>
24-
</When>
25-
<When Condition="'$(IsCodeCoverage)'=='true'">
26-
<PropertyGroup>
27-
<DefineConstants>$(DefineConstants);ENV_CODECOV</DefineConstants>
28-
</PropertyGroup>
29-
</When>
30-
</Choose>
3125

3226
<!--Define OS platform conditions and constants.
3327
https://docs.microsoft.com/en-us/visualstudio/msbuild/property-functions?view=vs-2019#msbuild-property-functions

0 commit comments

Comments
 (0)