Browse Source

Build: FAKE targets to build and test native providers (Intel MKL)

provider mkl-v1.4.0
Christoph Ruegg 13 years ago
parent
commit
f5fce7908f
  1. 7
      README.md
  2. 41
      build.fsx
  3. 7
      docs/content/index.fsx

7
README.md

@ -74,6 +74,13 @@ If you do not want to use the official binaries, or if you like to modify, debug
build.cmd Docs # generate documentation, normal build
build.cmd NuGet # generate NuGet packages, full build
build.cmd BuildNativex86 # build native providers 32bit/x86
build.cmd BuildNativex64 # build native providers 64bit/x64
build.cmd BuildNative # build native providers for all platforms
build.cmd TestNativex86 # test native providers 32bit/x86
build.cmd TestNativex64 # test native providers 64bit/x64
build.cmd TestNative # test native providers for all platforms
FAKE itself is not included in the repository but it will download and bootstrap itself automatically when build.cmd is run the first time. Note that this step is *not* required when using Visual Studio or `msbuild` directly.
Quick Links

41
build.fsx

@ -43,20 +43,55 @@ Target "Build" DoNothing
==> "Build"
// NATIVE BUILD
let buildx86 subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration","Release"); ("Platform","Win32")] subject |> ignore
let buildx64 subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration","Release"); ("Platform","x64")] subject |> ignore
Target "BuildNativex86" (fun _ -> buildx86 !! "MathNet.Numerics.NativeProviders.sln")
Target "BuildNativex64" (fun _ -> buildx64 !! "MathNet.Numerics.NativeProviders.sln")
Target "BuildNative" DoNothing
"Prepare" ==> "BuildNativex86" ==> "BuildNative"
"Prepare" ==> "BuildNativex64" ==> "BuildNative"
// TEST
Target "Test" (fun _ ->
!! "out/test/*/*UnitTests*.dll"
!! "out/test/**/*UnitTests*.dll"
|> NUnit (fun p ->
{ p with
DisableShadowCopy = true
TimeOut = TimeSpan.FromMinutes 30.
OutputFile = "TestResults.xml" })
)
OutputFile = "TestResults.xml" }))
"Build" ==> "Test"
// NATIVE TEST
Target "TestNativex86" (fun _ ->
!! "out/MKL/Windows/x86/*UnitTests*.dll"
|> NUnit (fun p ->
{ p with
ToolName = "nunit-console-x86.exe"
DisableShadowCopy = true
TimeOut = TimeSpan.FromMinutes 30.
OutputFile = "TestResults.xml" }))
Target "TestNativex64" (fun _ ->
!! "out/MKL/Windows/x64/*UnitTests*.dll"
|> NUnit (fun p ->
{ p with
DisableShadowCopy = true
TimeOut = TimeSpan.FromMinutes 30.
OutputFile = "TestResults.xml" }))
Target "TestNative" DoNothing
"BuildNativex86" ==> "TestNativex86" ==> "TestNative"
"BuildNativex64" ==> "TestNativex64" ==> "TestNative"
// DOCUMENTATION
Target "CleanDocs" (fun _ -> CleanDirs ["out" @@ "docs"])

7
docs/content/index.fsx

@ -68,5 +68,12 @@ If you do not want to use the official binaries, or if you like to modify, debug
build.cmd Docs # generate documentation, normal build
build.cmd NuGet # generate NuGet packages, full build
build.cmd BuildNativex86 # build native providers 32bit/x86
build.cmd BuildNativex64 # build native providers 64bit/x64
build.cmd BuildNative # build native providers for all platforms
build.cmd TestNativex86 # test native providers 32bit/x86
build.cmd TestNativex64 # test native providers 64bit/x64
build.cmd TestNative # test native providers for all platforms
FAKE itself is not included in the repository but it will download and bootstrap itself automatically when build.cmd is run the first time. Note that this step is *not* required when using Visual Studio or `msbuild` directly.
*)

Loading…
Cancel
Save