Compare commits

...

1 Commits

Author SHA1 Message Date
Christoph Ruegg ff0897f1a5 Build: try to run .Net 4.5 tests on mono 8 years ago
  1. 14
      build.fsx
  2. 9
      build/build-framework.fsx

14
build.fsx

@ -361,7 +361,8 @@ Target "Prepare" DoNothing
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
Target "BuildMain" (fun _ -> Target "BuildMain" (fun _ ->
build "MathNet.Numerics.sln") build "MathNet.Numerics.sln"
chmodx (!! "src/**/bin/Release/*.exe"))
//Target "BuildSigned" (fun _ -> dotnetBuild "Release-StrongName" "MathNet.Numerics.sln") //Target "BuildSigned" (fun _ -> dotnetBuild "Release-StrongName" "MathNet.Numerics.sln")
Target "Build" DoNothing Target "Build" DoNothing
@ -394,7 +395,10 @@ Target "OpenBlasWinBuild" DoNothing
// TEST // TEST
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
let testLibrary testsDir testsProj framework =
let testLibrary testsDir testsProj (framework:string) =
DotNetCli.RunCommand DotNetCli.RunCommand
(fun c -> { c with WorkingDir = testsDir}) (fun c -> { c with WorkingDir = testsDir})
(sprintf "run -p %s --configuration Release --framework %s --no-restore --no-build" (sprintf "run -p %s --configuration Release --framework %s --no-restore --no-build"
@ -424,13 +428,15 @@ Target "TestF#NET47" (fun _ -> testLibraryFsharp "net47")
"Build" ==> "TestF#Core1.1" ==> "TestF#" "Build" ==> "TestF#Core1.1" ==> "TestF#"
"Build" ==> "TestF#Core2.0" "Build" ==> "TestF#Core2.0"
"Build" =?> ("TestF#NET45", isWindows) ==> "TestF#" "Build" ==> "TestF#NET45" ==> "TestF#"
//"Build" =?> ("TestF#NET45", isWindows) ==> "TestF#"
"Build" =?> ("TestF#NET46", isWindows) "Build" =?> ("TestF#NET46", isWindows)
"Build" =?> ("TestF#NET47", isWindows) "Build" =?> ("TestF#NET47", isWindows)
"Build" ==> "TestC#Core1.1" ==> "TestC#" "Build" ==> "TestC#Core1.1" ==> "TestC#"
"Build" ==> "TestC#Core2.0" "Build" ==> "TestC#Core2.0"
"Build" =?> ("TestC#NET40", isWindows) "Build" =?> ("TestC#NET40", isWindows)
"Build" =?> ("TestC#NET45", isWindows) ==> "TestC#" "Build" ==> "TestC#NET45" ==> "TestC#"
//"Build" =?> ("TestC#NET45", isWindows) ==> "TestC#"
"Build" =?> ("TestC#NET46", isWindows) "Build" =?> ("TestC#NET46", isWindows)
"Build" =?> ("TestC#NET47", isWindows) "Build" =?> ("TestC#NET47", isWindows)
"TestC#" ==> "Test" "TestC#" ==> "Test"

9
build/build-framework.fsx

@ -153,6 +153,15 @@ let pack project = msbuild [ "Pack" ] "Release" project
let buildConfig32 config subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration", config); ("Platform","Win32")] subject |> ignore let buildConfig32 config subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration", config); ("Platform","Win32")] subject |> ignore
let buildConfig64 config subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration", config); ("Platform","x64")] subject |> ignore let buildConfig64 config subject = MSBuild "" (if hasBuildParam "incremental" then "Build" else "Rebuild") [("Configuration", config); ("Platform","x64")] subject |> ignore
let chmodx files =
if isLinux || isUnix || isMacOS then
for file in files do
let result =
ExecProcess (fun info ->
info.FileName <- "chmod"
info.Arguments <- sprintf "+x %s" file) TimeSpan.MaxValue
if result <> 0 then
failwithf "'chmod +x %s' failed" file
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// TEST // TEST

Loading…
Cancel
Save