Skip to content

Commit d67cb43

Browse files
Merge pull request #1377 from SixLabors/js/remote-executor-workaround
Use Ubuntu for Code Coverage.
2 parents a1784a6 + fdca787 commit d67cb43

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- os: ubuntu-latest
1818
framework: netcoreapp3.1
1919
runtime: -x64
20-
codecov: false
20+
codecov: true
2121
- os: windows-latest
2222
framework: netcoreapp3.1
2323
runtime: -x64
24-
codecov: true
24+
codecov: false
2525
- os: windows-latest
2626
framework: netcoreapp2.1
2727
runtime: -x64

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
https://api.nuget.org/v3/index.json;
121121
<!-- Contains RemoteExecutor. Taken from: https://github.com/dotnet/runtime/blob/master/NuGet.config -->
122122
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json;
123+
https://www.myget.org/F/coverlet-dev/api/v3/index.json;
123124
</RestoreSources>
124125
<SignAssembly>true</SignAssembly>
125126
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)shared-infrastructure/SixLabors.snk</AssemblyOriginatorKeyFile>

src/Directory.Build.targets

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@
2121
</PropertyGroup>
2222

2323
<!-- Workaround for running Coverlet with Determenistic builds -->
24-
<!-- https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/DeterministicBuild.md -->
24+
<PropertyGroup>
25+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
26+
</PropertyGroup>
27+
<ItemGroup>
28+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
29+
</ItemGroup>
30+
<ItemGroup>
31+
<SourceRoot Include="$(NuGetPackageRoot)" />
32+
</ItemGroup>
33+
2534
<Target Name="CoverletGetPathMap"
26-
DependsOnTargets="InitializeSourceRootMappedPaths"
27-
Returns="@(_LocalTopLevelSourceRoot)"
28-
Condition="'$(DeterministicSourcePaths)' == 'true'">
35+
DependsOnTargets="InitializeSourceRootMappedPaths"
36+
Returns="@(_LocalTopLevelSourceRoot)"
37+
Condition="'$(DeterministicSourcePaths)' == 'true'">
2938
<ItemGroup>
3039
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
3140
</ItemGroup>
3241
</Target>
33-
42+
3443
<ItemDefinitionGroup>
3544
<InternalsVisibleTo>
3645
<Visible>false</Visible>
@@ -62,7 +71,7 @@
6271
<!-- Empty target so that `dotnet test` will work on the solution -->
6372
<!-- https://github.com/Microsoft/vstest/issues/411 -->
6473
<Target Name="VSTest" Condition="'$(IsTestProject)' == 'true'"/>
65-
74+
6675
<ItemGroup>
6776
<!--Shared config files that have to exist at root level.-->
6877
<ConfigFilesToCopy Include="..\..\shared-infrastructure\.editorconfig;..\..\shared-infrastructure\.gitattributes" />
@@ -74,13 +83,13 @@
7483
SkipUnchangedFiles = "true"
7584
DestinationFolder="..\..\" />
7685
</Target>
77-
86+
7887
<!-- Allows regenerating T4-generated files at build time using MsBuild -->
7988
<!-- Enable on Windows OS to build all T4 templates. TODO: XPlat
8089
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TextTemplating\Microsoft.TextTemplating.targets" />
8190
<PropertyGroup>
8291
<TransformOnBuild>true</TransformOnBuild>
8392
</PropertyGroup>
8493
-->
85-
94+
8695
</Project>

tests/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<PackageReference Update="BenchmarkDotNet" Version="0.12.1" />
2929
<PackageReference Update="BenchmarkDotNet.Diagnostics.Windows" Version="0.12.1" Condition="'$(OS)' == 'Windows_NT'" />
3030
<PackageReference Update="Colourful" Version="2.0.5" />
31-
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All"/>
31+
<PackageReference Update="coverlet.collector" Version="1.3.1-preview.27.gdd2237a3be" PrivateAssets="All"/>
3232
<PackageReference Update="Magick.NET-Q16-AnyCPU" Version="7.15.5" />
3333
<PackageReference Update="Microsoft.DotNet.RemoteExecutor" Version="5.0.0-beta.20069.1" />
34-
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.5.0-preview-20200116-01" />
34+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.5.0" />
3535
<PackageReference Update="Moq" Version="4.14.5" />
3636
<PackageReference Update="Pfim" Version="0.9.1" />
3737
<PackageReference Update="SharpZipLib" Version="1.2.0" />

0 commit comments

Comments
 (0)