Skip to content

Commit 5a8be5b

Browse files
committed
Added build.fsx
1 parent fcc1820 commit 5a8be5b

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

src/FSharp.SystemCommandLine.sln

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "TestConsole", "TestConsole\
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{E144B2FD-C858-4294-BBBE-BD388B23F25C}"
1111
EndProject
12-
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Tests", "Tests\Tests.fsproj", "{6C135A08-5956-48AA-83BE-A1443FBE1F54}"
12+
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Tests", "Tests\Tests.fsproj", "{6C135A08-5956-48AA-83BE-A1443FBE1F54}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1B490EE2-1DBB-45FE-94DE-93841BFF96FC}"
15+
ProjectSection(SolutionItems) = preProject
16+
build.fsx = build.fsx
17+
EndProjectSection
1318
EndProject
1419
Global
1520
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/build.fsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#r "nuget: Fun.Build, 1.0.5"
2+
3+
open Fun.Build
4+
5+
let src = __SOURCE_DIRECTORY__
6+
7+
pipeline "CI Build" {
8+
9+
stage "Build FSharp.SystemCommandLine.sln" {
10+
run $"dotnet restore {src}/FSharp.SystemCommandLine/FSharp.SystemCommandLine.fsproj"
11+
run $"dotnet build {src}/FSharp.SystemCommandLine/FSharp.SystemCommandLine.fsproj --configuration Release"
12+
}
13+
14+
stage "Run Tests" {
15+
run $"dotnet test {src}/Tests/Tests.fsproj --configuration Release"
16+
}
17+
18+
runIfOnlySpecified false
19+
}
20+
21+
tryPrintPipelineCommandHelp ()

0 commit comments

Comments
 (0)