Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Sync SourceLink, XmlDoc, build.proj
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Oct 22, 2018
1 parent e0032b3 commit 5e9f769
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
1 change: 1 addition & 0 deletions CallPolly.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".project", ".project", "{6047ADD6-C48C-4583-A5C6-58FDF7A0DC10}"
ProjectSection(SolutionItems) = preProject
build.cmd = build.cmd
build.proj = build.proj
Directory.Build.props = Directory.Build.props
global.json = global.json
LICENSE = LICENSE
Expand Down
11 changes: 7 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
<Authors>@jet @bartelink and contributors</Authors>
<Company>Jet.com</Company>
<Description>Apply systemwide resilience strategies consistently across subsystems, standing on Polly's shoulders</Description>
<PackageProjectUrl>https://github.com/jet/CallPolly</PackageProjectUrl>
<RepositoryUrl>https://github.com/jet/CallPolly</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/jet/callpolly</PackageProjectUrl>
<PackageTags>polly bulkhead circuitbreaker timeout fsharp</PackageTags>
<PackageLicenseUrl>https://github.com/jet/CallPolly/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseUrl>https://github.com/jet/callpolly/blob/master/LICENSE</PackageLicenseUrl>
<Copyright>Copyright © 2018</Copyright>

<!-- SourceLink related properties https://github.com/dotnet/SourceLink#using-sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
</Project>
3 changes: 1 addition & 2 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dotnet pack build.proj /p:BN=%1 /p:PR=%2
dotnet test build.proj -v n
dotnet msbuild build.proj %*
23 changes: 10 additions & 13 deletions build.proj
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
<Project ToolsVersion="15.0">
<Project ToolsVersion="15.0" DefaultTargets="Build;Test">

<PropertyGroup>

<Name>CallPolly</Name>

<Cfg>--configuration Release</Cfg>
<Bin>-o $(RepoRootDir)bin</Bin>

<RepoRootDir>$([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)"))</RepoRootDir>

<BuildNumber Condition="'$(BN)' != ''">$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BN), 0))))</BuildNumber>
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PR)' != ''">--version-suffix CI$(BuildNumber)-pr$(PR)</Suffix>
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PR)' == ''">--version-suffix CI$(BuildNumber)</Suffix>
<BuildNumber Condition="'$(BuildNumber)' != ''">$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BuildNumber), 0))))</BuildNumber>
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PullRequestId)' != ''">--version-suffix CI$(BuildNumber)-pr$(PullRequestId)</Suffix>
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PullRequestId)' == ''">--version-suffix CI$(BuildNumber)</Suffix>

</PropertyGroup>

<Target Name="Build">
<Exec Command="dotnet build src/$(Name) --configuration Release $(Suffix)" WorkingDirectory="$(RepoRootDir)" />
</Target>

<Target Name="Pack">
<Exec Command="dotnet pack src/$(Name) --configuration Release -o $(RepoRootDir)bin $(Suffix)" WorkingDirectory="$(RepoRootDir)" />
<Exec Command="dotnet pack src/$(Name) $(Cfg) $(Bin) $(Suffix)" />
</Target>

<Target Name="Test">
<Exec Command='dotnet test tests/$(Name).Tests --configuration Release' WorkingDirectory="$(RepoRootDir)" />
<Exec Command='dotnet test tests/$(Name).Acceptance --configuration Release' WorkingDirectory="$(RepoRootDir)" />
<Exec Command="dotnet test tests/$(Name).Tests $(Cfg)" />
<Exec Command="dotnet test tests/$(Name).Acceptance $(Cfg)" />
</Target>
<Target Name="VSTest" DependsOnTargets="Test" />

</Project>
4 changes: 3 additions & 1 deletion src/CallPolly/CallPolly.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<WarningLevel>5</WarningLevel>
<IsTestProject>false</IsTestProject>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
Expand All @@ -18,7 +19,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' == 'net461' " />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" />
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
<PackageReference Include="Jet.JsonNet.Converters" Version="0.0.3-CI69140" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
Expand Down

0 comments on commit 5e9f769

Please sign in to comment.