@@ -17,7 +17,6 @@ open System.IO
1717open Fake.IO
1818open Fake.Azure
1919open Fake.DotNet .NuGet
20- open Fake.Tools .Git
2120open Fake.IO .FileSystemOperators
2221
2322// The name of the project
@@ -27,14 +26,6 @@ let project = "FSharp.Azure.StorageTypeProvider"
2726// (used as description in AssemblyInfo and as a short summary for NuGet package)
2827let summary = " Allows easy access to Azure Storage assets through F# scripts."
2928
30- // Git configuration (used for publishing documentation in gh-pages branch)
31- // The profile where the project is posted
32- let gitOwner = " fsprojects"
33- let gitHome = " https://github.com/" + gitOwner
34-
35- // The name of the project on GitHub
36- let gitName = " AzureStorageTypeProvider"
37-
3829// Read additional information from the release notes document
3930Environment.CurrentDirectory <- __ SOURCE_ DIRECTORY__
4031
@@ -46,10 +37,6 @@ let projectPath = Path.getFullName "./src/FSharp.Azure.StorageTypeProvider"
4637
4738// Test path
4839let testPath = Path.getFullName " ./tests/IntegrationTests"
49- // Read additional information from the release notes document
50-
51- // Test Output Dir
52- let testOutPutDir = " TestOutput"
5340
5441
5542let release =
@@ -68,10 +55,6 @@ Target.Create "AssemblyInfo" (fun _ ->
6855
6956let inline withWorkDir wd =
7057 DotNet.Options.withWorkingDirectory wd
71- let runDotNet cmd workingDir =
72- let result =
73- DotNet.exec ( withWorkDir workingDir) cmd " "
74- if result.ExitCode <> 0 then failwithf " 'dotnet %s ' failed in %s " cmd workingDir
7558
7659// --------------------------------------------------------------------------------------
7760// Clean build results
@@ -96,28 +79,22 @@ Target.Create "Build" (fun _ ->
9679Target.Create " ResetTestData" ( fun _ ->
9780 let script = Path.Combine( testPath, " ResetTestData.fsx" )
9881 Emulators.startStorageEmulator()
99- Fsi.exec ( fun p ->
82+ Fsi.exec ( fun p ->
83+ printfn " %A " p
10084 { p with
10185 TargetProfile = Fsi.Profile.Netcore
10286 WorkingDirectory = testPath
10387 }) script [ " " ]
10488 |> snd
105- |> Seq.iter( fun x -> printfn " %s " x )) ///ToBeFixed
89+ |> Seq.iter ( printfn " %s " ))
10690
10791// Run integration tests
10892let root = __ SOURCE_ DIRECTORY__
109- let testNetCoreDir = root </> " tests" </> " IntegrationTests" </> " bin" </> " Release" </> " netcoreapp2.0" </> " win10-x64" </> " publish"
11093
11194Target.Create " RunTests" ( fun _ ->
112- let result = DotNet.exec ( withWorkDir testPath) " publish --self-contained -c Release -r win10-x64" " "
113- if not result.OK then failwith " Publish failed"
114- printfn " Dkr: %s " testNetCoreDir
115- let result = DotNet.exec ( withWorkDir testNetCoreDir) " " " IntegrationTests.dll"
116- if result.OK then
117- printfn " Expecto for netcore finished without Errors"
118- else
119- printfn " Expecto for netcore finished with Errors"
120- )
95+ let testNetCoreDir = root </> " tests" </> " IntegrationTests" </> " bin" </> " Release" </> " netcoreapp2.0" </> " publish" </> " IntegrationTests.dll"
96+ DotNet.publish ( fun p -> { p with Configuration = DotNet.BuildConfiguration.Release }) testPath
97+ DotNet.exec id testNetCoreDir " " |> ignore)
12198
12299// --------------------------------------------------------------------------------------
123100// Build a NuGet package
@@ -134,8 +111,7 @@ Target.Create "NuGet" (fun _ ->
134111 ReleaseNotes = release.Notes |> String.concat Environment.NewLine
135112 Tags = " azure, f#, fsharp, type provider, blob, table, queue, script"
136113 OutputPath = @" bin\package"
137- Dependencies = [ " WindowsAzure.Storage" , " 9.3.2"
138- " FSharp.Compiler.Tools" , " 10.2.1" ]
114+ Dependencies = [ " WindowsAzure.Storage" , " 9.3.2" ]
139115 References = [ " FSharp.Azure.StorageTypeProvider.dll" ]
140116 Files =
141117 ([ " FSharp.Azure.StorageTypeProvider.xml" ; " FSharp.Azure.StorageTypeProvider.dll"
0 commit comments