diff --git a/build.fsx b/build.fsx index b808add4..a96f17bd 100644 --- a/build.fsx +++ b/build.fsx @@ -361,7 +361,8 @@ Target "Prepare" DoNothing // -------------------------------------------------------------------------------------- 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 "Build" DoNothing @@ -394,7 +395,10 @@ Target "OpenBlasWinBuild" DoNothing // TEST // -------------------------------------------------------------------------------------- -let testLibrary testsDir testsProj framework = + + + +let testLibrary testsDir testsProj (framework:string) = DotNetCli.RunCommand (fun c -> { c with WorkingDir = testsDir}) (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#Core2.0" -"Build" =?> ("TestF#NET45", isWindows) ==> "TestF#" +"Build" ==> "TestF#NET45" ==> "TestF#" +//"Build" =?> ("TestF#NET45", isWindows) ==> "TestF#" "Build" =?> ("TestF#NET46", isWindows) "Build" =?> ("TestF#NET47", isWindows) "Build" ==> "TestC#Core1.1" ==> "TestC#" "Build" ==> "TestC#Core2.0" "Build" =?> ("TestC#NET40", isWindows) -"Build" =?> ("TestC#NET45", isWindows) ==> "TestC#" +"Build" ==> "TestC#NET45" ==> "TestC#" +//"Build" =?> ("TestC#NET45", isWindows) ==> "TestC#" "Build" =?> ("TestC#NET46", isWindows) "Build" =?> ("TestC#NET47", isWindows) "TestC#" ==> "Test" diff --git a/build/build-framework.fsx b/build/build-framework.fsx index 199714d3..d21a0dc0 100644 --- a/build/build-framework.fsx +++ b/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 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