Skip to content

Commit

Permalink
remove preview3
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 15, 2019
1 parent 4f2929b commit d5f13fb
Show file tree
Hide file tree
Showing 32 changed files with 325 additions and 859 deletions.
85 changes: 0 additions & 85 deletions Paket.preview3.sln

This file was deleted.

34 changes: 18 additions & 16 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ let tags = "nuget, bundler, F#"
let solutionFile = "Paket.sln"

// Pattern specifying assemblies to be tested using NUnit
let testAssemblies = "tests/**/bin/Release/net46/*Tests*.dll"
let integrationTestAssemblies = "integrationtests/Paket.IntegrationTests/bin/Release/net46/*Tests*.dll"
let testAssemblies = "tests/**/bin/Release/net461/*Tests*.dll"
let integrationTestAssemblies = "integrationtests/Paket.IntegrationTests/bin/Release/net461/*Tests*.dll"

// Git configuration (used for publishing documentation in gh-pages branch)
// The profile where the project is posted
Expand All @@ -69,7 +69,7 @@ let mutable dotnetExePath = "dotnet"
// --------------------------------------------------------------------------------------

let buildDir = "bin"
let buildDirNet46 = "bin/net46"
let buildDirNet461 = "bin/net461"
let buildDirNetCore = "bin_netcore"
let tempDir = "temp"
let buildMergedDir = buildDir @@ "merged"
Expand Down Expand Up @@ -123,8 +123,8 @@ let genCSAssemblyInfo (projectPath: string) =

// Generate assembly info files with the right version & up-to-date information
Target "AssemblyInfo" (fun _ ->
let fsProjs = !! "src/**/*.fsproj" |> Seq.filter (fun s -> not <| s.Contains("preview"))
let csProjs = !! "src/**/*.csproj" |> Seq.filter (fun s -> not <| s.Contains("preview"))
let fsProjs = !! "src/**/*.fsproj"
let csProjs = !! "src/**/*.csproj"
fsProjs |> Seq.iter genFSAssemblyInfo
csProjs |> Seq.iter genCSAssemblyInfo
)
Expand All @@ -141,7 +141,7 @@ Target "Clean" (fun _ ->
!! "src/**/bin"
++ "tests/**/bin"
++ buildDir
++ buildDirNet46
++ buildDirNet461
++ buildDirNetCore
++ tempDir
|> CleanDirs
Expand Down Expand Up @@ -203,15 +203,15 @@ Target "DotnetRestore" (fun _ ->

DotNetCli.Restore (fun c ->
{ c with
Project = "Paket.preview3.sln"
Project = "Paket.sln"
ToolPath = dotnetExePath
})
)

Target "DotnetBuild" (fun _ ->
DotNetCli.Build (fun c ->
{ c with
Project = "Paket.preview3.sln"
Project = "Paket.sln"
ToolPath = dotnetExePath
AdditionalArgs = [ "/p:SourceLinkCreate=true" ]
})
Expand All @@ -221,9 +221,10 @@ Target "DotnetBuild" (fun _ ->
Target "DotnetPublish" (fun _ ->
DotNetCli.Publish (fun c ->
{ c with
Project = "src/Paket.preview3"
Project = "src/Paket"
ToolPath = dotnetExePath
Output = FullName (currentDirectory </> buildDirNetCore)
AdditionalArgs = [ "-f netcoreapp2.1" ]
})
)
"Clean" ==> "DotnetBuild" ?=> "DotnetPublish"
Expand All @@ -233,19 +234,19 @@ Target "DotnetPackage" (fun _ ->
CleanDir outPath
DotNetCli.Pack (fun c ->
{ c with
Project = "src/Paket.Core.preview3/Paket.Core.fsproj"
Project = "src/Paket.Core/Paket.Core.fsproj"
ToolPath = dotnetExePath
AdditionalArgs = [(sprintf "-o \"%s\"" outPath); (sprintf "/p:Version=%s" release.NugetVersion)]
})
DotNetCli.Pack (fun c ->
{ c with
Project = "src/Paket.preview3/Paket.fsproj"
Project = "src/Paket/Paket.fsproj"
ToolPath = dotnetExePath
AdditionalArgs = [(sprintf "-o \"%s\"" outPath); (sprintf "/p:Version=%s" release.NugetVersion)]
})
DotNetCli.Pack (fun c ->
{ c with
Project = "src/Paket.Bootstrapper.preview3/Paket.Bootstrapper.csproj"
Project = "src/Paket.Bootstrapper/Paket.Bootstrapper.csproj"
ToolPath = dotnetExePath
AdditionalArgs = [(sprintf "-o \"%s\"" outPath); (sprintf "/p:Version=%s" release.NugetVersion)]
})
Expand All @@ -256,7 +257,7 @@ Target "DotnetTest" (fun _ ->

DotNetCli.Test (fun c ->
{ c with
Project = "tests/Paket.Tests.preview3/Paket.Tests.fsproj"
Project = "tests/Paket.Tests/Paket.Tests.fsproj"
AdditionalArgs =
[ "--filter"; (if testSuiteFilterFlakyTests then "TestCategory=Flaky" else "TestCategory!=Flaky")
sprintf "--logger:trx;LogFileName=%s" ("tests_result/netcore/Paket.Tests/TestResult.trx" |> Path.GetFullPath)
Expand All @@ -272,10 +273,11 @@ Target "RunIntegrationTestsNetCore" (fun _ ->
System.Environment.SetEnvironmentVariable("PAKET_DISABLE_RUNTIME_RESOLUTION", "true")
DotNetCli.Test (fun c ->
{ c with
Project = "integrationtests/Paket.IntegrationTests.preview3/Paket.IntegrationTests.fsproj"
Project = "integrationtests/Paket.IntegrationTests/Paket.IntegrationTests.fsproj"
ToolPath = dotnetExePath
AdditionalArgs =
[ "--filter"; (if testSuiteFilterFlakyTests then "TestCategory=Flaky" else "TestCategory!=Flaky")
"--framework=netcoreapp2.0"
sprintf "--logger:trx;LogFileName=%s" ("tests_result/netcore/Paket.IntegrationTests/TestResult.trx" |> Path.GetFullPath) ]
TimeOut = TimeSpan.FromMinutes 60.
})
Expand Down Expand Up @@ -342,13 +344,13 @@ Target "MergePaketTool" (fun _ ->

let toPack =
mergeLibs
|> List.map (fun l -> buildDirNet46 @@ l)
|> List.map (fun l -> buildDirNet461 @@ l)
|> separated " "

let result =
ExecProcess (fun info ->
info.FileName <- currentDirectory </> "packages" </> "build" </> "ILRepack" </> "tools" </> "ILRepack.exe"
info.Arguments <- sprintf "/lib:%s /ver:%s /out:%s %s" buildDirNet46 release.AssemblyVersion paketFile toPack
info.Arguments <- sprintf "/lib:%s /ver:%s /out:%s %s" buildDirNet461 release.AssemblyVersion paketFile toPack
) (TimeSpan.FromMinutes 5.)

if result <> 0 then failwithf "Error during ILRepack execution."
Expand Down
4 changes: 2 additions & 2 deletions docs/tools/generate.fsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Getting help docs from Paket.exe
#r "../../bin/net46/Argu.dll"
#r "../../bin/net46/Paket.exe"
#r "../../bin/net461/Argu.dll"
#r "../../bin/net461/Paket.exe"
open System.IO


Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions integrationtests/Paket.IntegrationTests.preview3/Program.fs

This file was deleted.

30 changes: 30 additions & 0 deletions integrationtests/Paket.IntegrationTests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="10.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.Collections.NonGeneric" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.ComponentModel.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.ComponentModel.TypeConverter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.Runtime.Serialization.Formatters" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.Runtime.Serialization.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="System.Xml.XmlDocument" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="nunit.framework" publicKeyToken="2638cd05610744eb" culture="neutral" />
Expand Down
12 changes: 6 additions & 6 deletions integrationtests/Paket.IntegrationTests/InitSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ open System.Diagnostics
#if PAKET_NETCORE
[<Ignore(".net core paket doesnt init the boostrapper")>]
#endif
let ``#1040 init should download release version of bootstrapper``() =
let ``#1040 init should download release version of bootstrapper``() =
use __ = paket "init" "i001040-init-downloads-bootstrapper" |> fst
let bootstrapperPath = Path.Combine(scenarioTempPath "i001040-init-downloads-bootstrapper",".paket","paket.exe")

let productVersion = FileVersionInfo.GetVersionInfo(bootstrapperPath).ProductVersion
String.IsNullOrWhiteSpace productVersion |> shouldEqual false
productVersion.Contains("-") |> shouldEqual false
Expand All @@ -37,17 +37,17 @@ let ``#1743 empty log file``() =
#if PAKET_NETCORE
[<Ignore(".net core paket doesnt init the boostrapper")>]
#endif
let ``#1240 current bootstrapper should work``() =
let ``#1240 current bootstrapper should work``() =
CleanDir (scenarioTempPath "i001240-bootstrapper")
let paketToolPath = FullName(__SOURCE_DIRECTORY__ + "../../../bin/paket.bootstrapper.exe")
let paketToolPath = FullName(__SOURCE_DIRECTORY__ + "../../../bin/net461/paket.bootstrapper.exe")
CopyFile (scenarioTempPath "i001240-bootstrapper") paketToolPath

let result =
ExecProcessAndReturnMessages (fun info ->
info.FileName <- scenarioTempPath "i001240-bootstrapper" </> "paket.bootstrapper.exe"
info.WorkingDirectory <- scenarioTempPath "i001240-bootstrapper"
info.Arguments <- "") (System.TimeSpan.FromMinutes 5.)
if result.ExitCode <> 0 then
if result.ExitCode <> 0 then
let errors = String.Join(Environment.NewLine,result.Errors)
printfn "%s" <| String.Join(Environment.NewLine,result.Messages)
failwith errors
Expand All @@ -59,7 +59,7 @@ let ``#1240 current bootstrapper should work``() =
|> shouldEqual true

[<Test>]
let ``#1041 init api``() =
let ``#1041 init api``() =
let tempScenarioDir = scenarioTempPath "i001041-init-api"

let url = "http://my.test/api"
Expand Down
5 changes: 0 additions & 5 deletions integrationtests/Paket.IntegrationTests/PackSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,6 @@ let ``#2694 paket fixnuspec should not remove project references``() =
| None -> Assert.Fail("Expected package to still contain the FSharp.Core reference!")
| Some s -> ignore s

// Should we remove Microsoft.NETCore.App?
// Problably not as "packaged" console applications have this dependency by default, see https://www.nuget.org/packages/dotnet-mergenupkg
nuspec.Dependencies.Value.Length
|> shouldEqual 3

[<Test>]
let ``#2765 pack single template does not evaluate other template`` () =
let scenario = "i002765-evaluate-only-single-template"
Expand Down
Loading

0 comments on commit d5f13fb

Please sign in to comment.