Skip to content

Commit

Permalink
Merge pull request #1163 from dotnet/deterministic
Browse files Browse the repository at this point in the history
Enable deterministic settings
  • Loading branch information
clairernovotny committed Mar 28, 2020
2 parents f7cd186 + 64c58aa commit e4e13e2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Ix.NET/Source/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.1.71" PrivateAssets="all" />
</ItemGroup>


<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="coverlet.collector" Version="1.2.0" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions Rx.NET/Source/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
Expand Down
6 changes: 3 additions & 3 deletions azure-pipelines.ix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ stages:
jobs:
- job: Build
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 3.x'
- task: DotNetCoreInstaller@0
inputs:
version: 3.1.x
version: '3.1.300-preview-015048'
performMultiLevelLookup: true
includePreviewVersions: true

- task: DotNetCoreCLI@2
inputs:
Expand Down
6 changes: 6 additions & 0 deletions azure-pipelines.rx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ stages:
projects: Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Tests.System.Reactive.ApiApprovals.csproj
arguments: -c $(BuildConfiguration) --no-build --no-restore
displayName: Run Api Approvals Tests
enabled: false

- script: reportgenerator -reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/Rx.NET/Source/coverlet/reports -reporttypes:"Cobertura"
displayName: Create reports
Expand All @@ -100,6 +101,11 @@ stages:
- publish: $(Build.ArtifactStagingDirectory)\artifacts
displayName: Publish artifacts
artifact: BuildPackages

- publish: Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Api
displayName: Publish test artifiacts
artifact: ApprovalsTests
condition: always()

- job: Integration_Linux_Tests
dependsOn: Build
Expand Down

0 comments on commit e4e13e2

Please sign in to comment.