-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
build.fsx
36 lines (24 loc) · 776 Bytes
/
build.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#r "nuget: Fun.Build, 1.0.5"
open Fun.Build
pipeline "build" {
workingDir __SOURCE_DIRECTORY__
runBeforeEachStage (fun ctx ->
if ctx.GetStageLevel() = 0 then
printfn $"::group::{ctx.Name}")
runAfterEachStage (fun ctx ->
if ctx.GetStageLevel() = 0 then
printfn "::endgroup::")
stage "Restore Tools" { run "dotnet tool restore" }
stage "Build" { run "dotnet build Stanford.NLP.NET.sln -c Release" }
stage "Test" { run "dotnet test Stanford.NLP.NET.sln -c Release" }
runIfOnlySpecified
}
pipeline "docs" {
workingDir __SOURCE_DIRECTORY__
stage "Build" {
run "rm -rf ./docs/output"
run "dotnet serve -o -d=./docs"
}
runIfOnlySpecified
}
tryPrintPipelineCommandHelp ()