Skip to content

Commit

Permalink
tool restore
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 22, 2019
1 parent d405ac4 commit 46070a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,15 @@ let runCmdIn workDir exe =
let dotnet workDir = runCmdIn workDir "dotnet"

Target "DotnetRestore" (fun _ ->

//WORKAROUND dotnet restore with paket doesnt restore the PackageReference of SourceLink
// ref https://github.com/fsprojects/Paket/issues/2930
Paket.Restore (fun p ->
{ p with
Group = "NetCoreTools" })
DotNetCli.ToolRestore (fun c ->
{ c with
ToolPath = dotnetExePath
})

DotNetCli.Restore (fun c ->
{ c with
Expand Down Expand Up @@ -274,6 +277,7 @@ Target "RunIntegrationTestsNetCore" (fun _ ->
TimeOut = TimeSpan.FromMinutes 60.
})
)

"Clean" ==> "DotnetPublish" ==> "RunIntegrationTestsNetCore"

// --------------------------------------------------------------------------------------
Expand Down Expand Up @@ -361,6 +365,7 @@ Target "RunIntegrationTests" (fun _ ->
Where = if testSuiteFilterFlakyTests then "cat==Flaky" else "cat!=Flaky"
TimeOut = TimeSpan.FromMinutes 40. })
)

"Clean" ==> "Build" ==> "RunIntegrationTests"


Expand Down

0 comments on commit 46070a3

Please sign in to comment.