Skip to content

Commit

Permalink
Added build.fsx
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMarr committed Dec 17, 2023
1 parent fcc1820 commit 5a8be5b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/FSharp.SystemCommandLine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "TestConsole", "TestConsole\
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{E144B2FD-C858-4294-BBBE-BD388B23F25C}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Tests", "Tests\Tests.fsproj", "{6C135A08-5956-48AA-83BE-A1443FBE1F54}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Tests", "Tests\Tests.fsproj", "{6C135A08-5956-48AA-83BE-A1443FBE1F54}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1B490EE2-1DBB-45FE-94DE-93841BFF96FC}"
ProjectSection(SolutionItems) = preProject
build.fsx = build.fsx
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
21 changes: 21 additions & 0 deletions src/build.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#r "nuget: Fun.Build, 1.0.5"

open Fun.Build

let src = __SOURCE_DIRECTORY__

pipeline "CI Build" {

stage "Build FSharp.SystemCommandLine.sln" {
run $"dotnet restore {src}/FSharp.SystemCommandLine/FSharp.SystemCommandLine.fsproj"
run $"dotnet build {src}/FSharp.SystemCommandLine/FSharp.SystemCommandLine.fsproj --configuration Release"
}

stage "Run Tests" {
run $"dotnet test {src}/Tests/Tests.fsproj --configuration Release"
}

runIfOnlySpecified false
}

tryPrintPipelineCommandHelp ()

0 comments on commit 5a8be5b

Please sign in to comment.