Skip to content

Commit

Permalink
Changed build script to execute unit tests as part of "Build" target
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Jan 23, 2019
1 parent d01a6f9 commit b5ec642
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Target.create "RunGenerator" (fun _ ->
)
)

Target.create "Build" (fun _ ->
Target.create "BuildFabulous" (fun _ ->
projects |> List.iter buildProject
)

Expand Down Expand Up @@ -202,6 +202,7 @@ Target.create "TestTemplatesNuGet" (fun _ ->
if code <> 0 then failwithf "%s %s failed, error code %d" "msbuild" args code
)

Target.create "Build" ignore
Target.create "Test" ignore

open Fake.Core.TargetOperators
Expand All @@ -213,15 +214,13 @@ open Fake.Core.TargetOperators
==> "BuildTools"
==> "BuildControls"
==> "RunGenerator"
==> "Build"

"Build"
==> "BuildFabulous"
==> "RunTests"
==> "BuildSamples"
==> "Test"
==> "Build"

"Build"
==> "TestTemplatesNuGet"
==> "BuildSamples"
==> "Test"

Target.runOrDefault "Build"

0 comments on commit b5ec642

Please sign in to comment.