Skip to content

Commit

Permalink
Run Pickles with Framework #1894
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmonty committed May 1, 2018
1 parent e567c2e commit 795d0e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions help/markdown/fake-tools-pickles.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
#r "paket:
nuget Fake.Core.Target
nuget Fake.IO.FileSystem
nuget Fake.Tools.Pickles //"
nuget Fake.Tools.Pickles
nuget Pickles.CommandLine storage: packages
//"
open Fake.Core
open Fake.Core.TargetOperators
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing
open Fake.Tools
open System.IO
Expand All @@ -22,7 +24,8 @@ Target.create "BuildDoc" (fun _ ->
Pickles.convert (fun p ->
{ p with FeatureDirectory = currentDirectory </> "Specs"
OutputDirectory = currentDirectory </> "SpecDocs"
OutputFileFormat = Pickles.DocumentationFormat.DHTML })
OutputFileFormat = Pickles.DocumentationFormat.DHTML
ToolPath = Tools.findToolInSubPath "pickles.exe" "~/.fake/build.fsx/packages" })
)
Target.runOrDefault "BuildDoc"
Expand Down
5 changes: 3 additions & 2 deletions src/app/Fake.Tools.Pickles/Pickles.fs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ let convert setParams =
let makeProcessStartInfo info =
{ info with FileName = parameters.ToolPath
WorkingDirectory = "."
Arguments = parameters |> buildPicklesArgs }
Arguments = parameters |> buildPicklesArgs }
|> Process.withFramework

let result = Process.execSimple makeProcessStartInfo parameters.TimeOut
let result = Process.execSimple makeProcessStartInfo parameters.TimeOut

ResultHandling.failBuildIfPicklesReportedError parameters.ErrorLevel result

0 comments on commit 795d0e4

Please sign in to comment.