Skip to content

Commit be0dc63

Browse files
committed
explicitly set target buildparam from command line parser
1 parent f80fbf8 commit be0dc63

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

build/scripts/Commandline.fsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ module Commandline =
5151
| _ -> "build"
5252

5353
let needsFullBuild =
54+
printfn "%s, %A" target skipTests
55+
5456
match (target, skipTests) with
5557
| (_, true) -> true
5658
//dotnet-xunit needs to a build of its own anyways
@@ -95,4 +97,5 @@ module Commandline =
9597
traceError usage
9698
exit 2
9799

100+
setBuildParam "target" target
98101
traceHeader target

build/scripts/Targets.fsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ Target "Clean" Build.Clean
3636

3737
Target "Restore" Build.Restore
3838

39-
Target "IncrementalBuild" <| fun _ -> Build.Compile false
40-
4139
Target "FullBuild" <| fun _ -> Build.Compile false
4240

4341
Target "Test" Tests.RunUnitTests
@@ -80,21 +78,23 @@ Target "Canary" <| fun _ ->
8078
==> "Build"
8179

8280
"Clean"
83-
==> "FullBuild"
81+
=?> ("FullBuild", Commandline.needsFullBuild)
8482
==> "Profile"
8583

8684
"Clean"
87-
==> "FullBuild"
85+
=?> ("FullBuild", Commandline.needsFullBuild)
8886
==> "Benchmark"
8987

9088
"Version"
91-
==> "Release" ==> "Canary"
89+
==> "Release"
90+
==> "Canary"
9291

93-
"FullBuild"
92+
"Clean"
93+
=?> ("FullBuild", Commandline.needsFullBuild)
9494
==> "Integrate"
9595

9696
"Build"
9797
==> "Release"
9898

99-
// start build
100-
RunTargetOrDefault Commandline.target
99+
RunTargetOrListTargets()
100+

0 commit comments

Comments
 (0)