This repository was archived by the owner on Nov 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +22
-20
lines changed Expand file tree Collapse file tree 5 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ EndProject
12
12
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = ".project" , ".project" , "{6047ADD6-C48C-4583-A5C6-58FDF7A0DC10}"
13
13
Project Section (SolutionItems ) = preProject
14
14
build .cmd = build .cmd
15
+ build .proj = build .proj
15
16
Directory .Build .props = Directory .Build .props
16
17
global .json = global .json
17
18
LICENSE = LICENSE
Original file line number Diff line number Diff line change 4
4
<Authors >@jet @bartelink and contributors</Authors >
5
5
<Company >Jet.com</Company >
6
6
<Description >Apply systemwide resilience strategies consistently across subsystems, standing on Polly's shoulders</Description >
7
- <PackageProjectUrl >https://github.com/jet/CallPolly</PackageProjectUrl >
8
- <RepositoryUrl >https://github.com/jet/CallPolly</RepositoryUrl >
9
- <RepositoryType >git</RepositoryType >
7
+ <PackageProjectUrl >https://github.com/jet/callpolly</PackageProjectUrl >
10
8
<PackageTags >polly bulkhead circuitbreaker timeout fsharp</PackageTags >
11
- <PackageLicenseUrl >https://github.com/jet/CallPolly /blob/master/LICENSE</PackageLicenseUrl >
9
+ <PackageLicenseUrl >https://github.com/jet/callpolly /blob/master/LICENSE</PackageLicenseUrl >
12
10
<Copyright >Copyright © 2018</Copyright >
11
+
12
+ <!-- SourceLink related properties https://github.com/dotnet/SourceLink#using-sourcelink -->
13
+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
14
+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
15
+ <AllowedOutputExtensionsInPackageBuildOutputFolder >$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder >
13
16
</PropertyGroup >
14
17
</Project >
Original file line number Diff line number Diff line change 1
- dotnet pack build.proj /p:BN=%1 /p:PR=%2
2
- dotnet test build.proj -v n
1
+ dotnet msbuild build.proj %*
Original file line number Diff line number Diff line change 1
- <Project ToolsVersion =" 15.0" >
1
+ <Project ToolsVersion =" 15.0" DefaultTargets = " Build;Test " >
2
2
3
3
<PropertyGroup >
4
4
5
5
<Name >CallPolly</Name >
6
-
6
+ <Cfg >--configuration Release</Cfg >
7
+
7
8
<RepoRootDir >$([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)"))</RepoRootDir >
9
+ <Bin >-o $(RepoRootDir)bin</Bin >
8
10
9
- <BuildNumber Condition =" '$(BN )' != ''" >$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BN ), 0))))</BuildNumber >
10
- <Suffix Condition =" '$(BuildNumber)' != '' AND '$(PR )' != ''" >--version-suffix CI$(BuildNumber)-pr$(PR )</Suffix >
11
- <Suffix Condition =" '$(BuildNumber)' != '' AND '$(PR )' == ''" >--version-suffix CI$(BuildNumber)</Suffix >
11
+ <BuildNumber Condition =" '$(BuildNumber )' != ''" >$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BuildNumber ), 0))))</BuildNumber >
12
+ <Suffix Condition =" '$(BuildNumber)' != '' AND '$(PullRequestId )' != ''" >--version-suffix CI$(BuildNumber)-pr$(PullRequestId )</Suffix >
13
+ <Suffix Condition =" '$(BuildNumber)' != '' AND '$(PullRequestId )' == ''" >--version-suffix CI$(BuildNumber)</Suffix >
12
14
13
15
</PropertyGroup >
14
16
15
17
<Target Name =" Build" >
16
- <Exec Command =" dotnet build src/$(Name) --configuration Release $(Suffix)" WorkingDirectory =" $(RepoRootDir)" />
17
- </Target >
18
-
19
- <Target Name =" Pack" >
20
- <Exec Command =" dotnet pack src/$(Name) --configuration Release -o $(RepoRootDir)bin $(Suffix)" WorkingDirectory =" $(RepoRootDir)" />
18
+ <Exec Command =" dotnet pack src/$(Name) $(Cfg) $(Bin) $(Suffix)" />
21
19
</Target >
22
20
23
21
<Target Name =" Test" >
24
- <Exec Command =' dotnet test tests/$(Name).Tests --configuration Release ' WorkingDirectory = " $(RepoRootDir )" />
25
- <Exec Command =' dotnet test tests/$(Name).Acceptance --configuration Release ' WorkingDirectory = " $(RepoRootDir )" />
22
+ <Exec Command =" dotnet test tests/$(Name).Tests $(Cfg )" />
23
+ <Exec Command =" dotnet test tests/$(Name).Acceptance $(Cfg )" />
26
24
</Target >
27
- <Target Name =" VSTest" DependsOnTargets =" Test" />
28
25
29
26
</Project >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFrameworks >netstandard2.0;net461</TargetFrameworks >
5
+ <GenerateDocumentationFile Condition =" '$(Configuration)' == 'Release' " >true</GenerateDocumentationFile >
5
6
<WarningLevel >5</WarningLevel >
6
7
<IsTestProject >false</IsTestProject >
7
8
<DisableImplicitFSharpCoreReference >true</DisableImplicitFSharpCoreReference >
18
19
</ItemGroup >
19
20
20
21
<ItemGroup >
21
- <PackageReference Include =" FSharp.Core" Version =" 3.1.2.5" Condition =" '$(TargetFramework)' == 'net461' " />
22
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0-beta-63127-02" PrivateAssets =" All" />
23
+ <PackageReference Include =" FSharp.Core" Version =" 3.1.2.5" Condition =" '$(TargetFramework)' != 'netstandard2.0' " />
22
24
<PackageReference Include =" FSharp.Core" Version =" 4.3.4" Condition =" '$(TargetFramework)' == 'netstandard2.0' " />
23
25
<PackageReference Include =" Jet.JsonNet.Converters" Version =" 0.0.3-CI69140" />
24
26
<PackageReference Include =" Newtonsoft.Json" Version =" 11.0.2" />
You can’t perform that action at this time.
0 commit comments