-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.fsx
37 lines (29 loc) · 895 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
37
#r "paket:
nuget Fake.DotNet.Cli
nuget Fake.IO.FileSystem
nuget Fake.Core.Target //"
#load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.IO
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
Target.initEnvironment ()
Target.create "Clean" (fun _ -> !! "*/bin" ++ "*/obj" |> Shell.deleteDirs)
Target.create "Build" (fun _ -> !! "*.sln" |> Seq.iter (DotNet.build id))
Target.create
"Test"
(fun _ ->
!! "Tests/*.*sproj"
|> Seq.iter (
DotNet.test
(fun options ->
{ options with
NoBuild = true
NoLogo = true
Configuration = DotNet.BuildConfiguration.Release })
))
Target.create "All" ignore
"Clean" ==> "Build" ==> "Test" ==> "All"
Target.runOrDefault "All"