Skip to content

Little forker 4 #1119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ _TeamCity*
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
.NCrunch*
.NCrunch_*

# MightyMoose
*.mm.*
Expand Down
19 changes: 3 additions & 16 deletions PlatformLibs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Extensions.Hosting.SerilogC
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Extensions.Hosting.Tests", "libs\hosting\tests\Hosting.Tests\Extensions.Hosting.Tests.csproj", "{FA64DAF0-66F7-4F6B-BB1B-3B53F4FBC088}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solution Items", "{6560E27F-806F-4500-9C50-AA2755458AA1}"
ProjectSection(SolutionItems) = preProject
.dockerignore = .dockerignore
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
build.ps1 = build.ps1
LICENSE = LICENSE
readme.md = readme.md
libs\src.props = libs\src.props
libs\test.props = libs\test.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{110FA643-6DE5-48FB-9368-FDE268A192C1}"
ProjectSection(SolutionItems) = preProject
.github\dependabot.yml = .github\dependabot.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bullseye", "libs\bullseye\src\Bullseye\Bullseye.csproj", "{558069C6-0126-45A2-89E0-A2739E5C1FBC}"
EndProject
Expand Down Expand Up @@ -247,6 +231,9 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "little-forker", "little-forker", "{C035DC26-7F31-432A-8CE2-221F7E1877B2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D87C8600-94DC-463D-947B-F1EFA6E748B4}"
ProjectSection(SolutionItems) = preProject
libs\little-forker\src\Directory.Build.props = libs\little-forker\src\Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{1137E742-AF34-47F0-BFAA-F7FD0FE246F0}"
EndProject
Expand Down
25 changes: 18 additions & 7 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,30 @@

foreach (var lib in libs)
{
var srcPackages = Directory.GetFiles($"libs/{lib}/src/", "*.csproj", SearchOption.AllDirectories);

var buildTarget = $"{lib}-build";
Target(
buildTarget,
DependsOn(Clean),
srcPackages,
packableProject => Run("dotnet", $"pack {packableProject} -c Release -o {ArtifactsDir}"));

var packTarget = $"{lib}-pack";
Target(
packTarget,
DependsOn(Clean),
srcPackages,
packableProject => Run("dotnet", $"pack {packableProject} -c Release -o {ArtifactsDir}"));
defaultTargets.Add(packTarget);

var testProjects = Directory.GetFiles($"libs/{lib}/tests/", "*.Tests.csproj", SearchOption.AllDirectories); // will ignore "IntegrationTests.csproj"
var testTarget = $"{lib}-test";
Target(testTarget,
DependsOn(buildTarget),
testProjects,
testProject => Run("dotnet", $"test {testProject} -c Release"));
defaultTargets.Add(testTarget);

var packableProjects = Directory.GetFiles($"libs/{lib}/src/", "*.csproj", SearchOption.AllDirectories);
var packTarget = $"{lib}-pack";
Target(packTarget, DependsOn(Clean),
packableProjects,
packableProject => Run("dotnet", $"pack {packableProject} -c Release -o {ArtifactsDir}"));
defaultTargets.Add(packTarget);
}

Target(PushToGitHub, () =>
Expand Down
2 changes: 1 addition & 1 deletion libs/little-forker/src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<PropertyGroup>
<MinVerTagPrefix>little-forker-</MinVerTagPrefix>
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerMinimumMajorMinor>4.0</MinVerMinimumMajorMinor>
</PropertyGroup>

</Project>
Binary file not shown.

This file was deleted.

Loading