Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.2 #2011

Merged
merged 88 commits into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
150ca07
update default paths and add clarifying docs
baronfel May 22, 2018
8dd18b9
pin sdk verison
baronfel May 22, 2018
fd4db19
use the same dir computed above
baronfel May 22, 2018
2550287
update script install location
baronfel May 22, 2018
697f924
fixup tests and differentiate between system install dir and user ins…
baronfel Jun 10, 2018
69db1c3
fix tests for real
baronfel Jun 10, 2018
b08917e
fib build break
baronfel Jun 10, 2018
1958c8f
update global.json probing to look in current dir and all parent dire…
baronfel Jun 10, 2018
3515e79
I don't know C# anymore
baronfel Jun 10, 2018
d4f9588
Changed NoDescription to target.Name. Updated links to use HTTPS per …
sachinshahredmane Jun 12, 2018
6ef532b
Return null if no description is provided
sachinshahredmane Jun 17, 2018
c17633e
Use LogMessage colors for target.Name
sachinshahredmane Jun 17, 2018
1c2b44e
Combined name and description on one line for Targets
sachinshahredmane Jun 17, 2018
87e819f
Modified description display to be after colon instead of in brackets
sachinshahredmane Jun 17, 2018
2e6d682
Reverted change to URL in NuSpecFileSpecs.cs
sachinshahredmane Jun 17, 2018
70b1455
Fix an ambiguity in Octokit.fsx
teo-tsirpanis Jun 20, 2018
ffb1cd5
Initial debian packaging
Apr 12, 2018
51e67f8
install fpm on travis
Apr 12, 2018
4e9bc5b
Using dotnet-packaging to create debian package
May 22, 2018
4cac965
Change for netcoreapp2.1
Jun 20, 2018
a748a69
Back to normal fake name
Jun 22, 2018
2b24412
guard against empty artifacts
Jun 22, 2018
eea7888
Merge remote-tracking branch 'upstream/release/next' into release/next
sachinshahredmane Jun 23, 2018
18440b4
Made check for description more robust.
sachinshahredmane Jun 23, 2018
2dd1160
Fix Xml.poke by adding the missing load
yuriyostapenko Jun 25, 2018
0cb7e0a
Added VS 2017 path pattern
josiahdj Jun 26, 2018
5928892
Remove tracing from AssemblyInfoFile
BlythMeister Jun 29, 2018
6f196c6
Add wrapper functions for tracing
BlythMeister Jun 29, 2018
614a958
Add function to load xml document from path
BlythMeister Jun 29, 2018
6e0875e
Merge pull request #2004 from teo-tsirpanis/patch-2
matthid Jun 29, 2018
a2fc363
Merge pull request #2005 from uncleyo/fix-xml-poke
matthid Jun 29, 2018
f68fc3c
Merge pull request #2006 from josiahdj/AddNewVsPathsForSqlPackageSearch
matthid Jun 29, 2018
2fbe01e
Provide type hint on loadDoc
BlythMeister Jun 29, 2018
2332eda
Merge branch 'release/next' into dotnet_sdk_probing
matthid Jun 30, 2018
2c19454
release notes
matthid Jul 1, 2018
b0915ef
Merge branch 'release/next' of https://github.com/zakaluka/FAKE into …
matthid Jul 1, 2018
a80fa45
Merge branch '1828-deb-packaging' of https://github.com/TheAngryByrd/…
matthid Jul 1, 2018
3df04c0
make a single print and add comment, see https://github.com/fsharp/FA…
matthid Jul 1, 2018
2db3ccd
change /nuget to /release folder.
matthid Jul 1, 2018
fe0d501
Update FeedSpecs.cs
matthid Jul 1, 2018
77f4d80
Merge branch 'release/next' into dotnet_sdk_probing
matthid Jul 1, 2018
188d621
fix compilation & warning
matthid Jul 1, 2018
944ae5d
publish deb packge
matthid Jul 1, 2018
30bf7e8
Consider and write global.json if required.
matthid Jul 1, 2018
3347916
Merge branch 'baronfel-dotnet_sdk_probing' into release/next
matthid Jul 1, 2018
6217870
remove prefer apis (I don't think we need them anymore).
matthid Jul 1, 2018
18c1e98
Ignore target name case when determining build order, fixes https://g…
matthid Jul 1, 2018
c7ccb03
redirect fsharp.core and fake.core.targets at compile-time as well.
matthid Jul 1, 2018
992f877
paket update and add type annotations to Fake.Api.GitHub
matthid Jul 1, 2018
87658e1
typo
matthid Jul 1, 2018
24fb416
unbreak...
matthid Jul 1, 2018
59c43df
please kill me.
matthid Jul 1, 2018
675eddc
Utilise the existing load function to load the XML file
BlythMeister Jul 2, 2018
fc396ca
Update function names
BlythMeister Jul 2, 2018
d1f78fb
Add Trace tags for Failure and Final targets
BlythMeister Jul 2, 2018
814de03
Merge remote-tracking branch 'origin/release/next' into tracing
BlythMeister Jul 2, 2018
1f09d69
Revert accidental open removal
BlythMeister Jul 2, 2018
31c7b36
Fix function naming issue
BlythMeister Jul 2, 2018
bf3a093
Make save become a public and rename
BlythMeister Jul 2, 2018
fef71d4
Add additional select & replace by xpath functions
BlythMeister Jul 2, 2018
c515ca8
Remove verbose trace line
BlythMeister Jul 2, 2018
d275b7e
Merge remote-tracking branch 'origin/release/next' into xmlDoc
BlythMeister Jul 2, 2018
aecedeb
Fix issues with typing
BlythMeister Jul 2, 2018
382b034
Remove redundant casting
BlythMeister Jul 2, 2018
e39e9b5
expand passed-in path in order to workaround a dotnet cli bug
baronfel Jul 2, 2018
f639e1e
Merge pull request #2014 from baronfel/template_sh_expand_path
matthid Jul 2, 2018
fb3c841
Merge pull request #2010 from BlythMeister/xmlDoc
matthid Jul 2, 2018
d471144
Update trace function to be a higher order function "useWith"
BlythMeister Jul 2, 2018
f56588a
Use null rather than "NoDescription"
BlythMeister Jul 2, 2018
dbca42d
Update descriptions to be string option
BlythMeister Jul 3, 2018
a9b61bf
Update use with to switch based on the types of function called
BlythMeister Jul 3, 2018
c8eaab7
add test and fix issue around parallel runner introduced in https://g…
matthid Jul 3, 2018
da42061
Merge branch 'release/next' of github.com:fsharp/FAKE into release/next
matthid Jul 3, 2018
1843d82
Simplify implementation so you always have access to the trace in you…
BlythMeister Jul 4, 2018
2bd5909
Merge pull request #2009 from BlythMeister/tracing
matthid Jul 4, 2018
7624777
fix inconsistency in Process API and double quoting in DotNet
matthid Jul 4, 2018
237c4e9
Merge branch 'release/next' of github.com:fsharp/FAKE into release/next
matthid Jul 4, 2018
786c0c2
revert breaking changes
matthid Jul 4, 2018
1f2583e
compile again.
matthid Jul 4, 2018
5ffa1cb
Fix target results to show result based on the last target not all pr…
BlythMeister Jul 5, 2018
74e60c9
Tweak trace logic to allow target traces to pass an option
BlythMeister Jul 5, 2018
4482bbb
Fixes following code review
BlythMeister Jul 5, 2018
e993402
Tweaks to make the code look nicer
BlythMeister Jul 5, 2018
5887387
increase timeout
matthid Jul 8, 2018
0db4ee4
Only updagrade the runner to FSharp.Core 4.5 and leave other packages…
matthid Jul 8, 2018
b8483ea
Merge pull request #2016 from BlythMeister/tracing2
matthid Jul 8, 2018
dbcb96d
5.2
matthid Jul 9, 2018
01dd24e
Merge branch 'release/next' of github.com:fsharp/FAKE into release/next
matthid Jul 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ env:
- HOME=/home/travis APPDATA=/home/travis LocalAppData=/home/travis


before install:
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force openssl ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gnu-tar ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update; sudo apt install ruby ruby-dev rubygems-integration build-essential -y ; fi
- gem install --no-ri --no-rdoc fpm

mono:
- 5.0.1
Expand Down
12 changes: 12 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release Notes

## 5.2.0 - 2018-07-10

* ENHANCEMENT: Improve output around empty target descriptions - https://github.com/fsharp/FAKE/pull/1996
* BUGFIX: Proper handling of dotnet SDK versioning - https://github.com/fsharp/FAKE/pull/1963
* NEW: Add debian package (maintainer wanted for hosting!) - https://github.com/fsharp/FAKE/pull/1863
* BUGFIX: Fix ambiguity in new octokit release - https://github.com/fsharp/FAKE/pull/2004
* BUGFIX: Fix XML poke - https://github.com/fsharp/FAKE/pull/2005
* BUGFIX: Fix SQLPackage path with VS2017 - https://github.com/fsharp/FAKE/pull/2006
* BUGFIX: Warn when resolved FSharp.Core doesn't match - https://github.com/fsharp/FAKE/issues/2001
* ENHANCEMENT: Upgrade runner to FSharp.Core 4.5
* ENHANCEMENT: Fix tracing of final and failure targets and add new `Trace.useWith` API - https://github.com/fsharp/FAKE/pull/2009 and https://github.com/fsharp/FAKE/pull/2016

## 5.1.0 - 2018-06-18

* NEW: module Fake.DotNet.Fsi to start fsharpi/fsi.exe on a F# script - https://github.com/fsharp/FAKE/pull/1970
Expand Down
178 changes: 79 additions & 99 deletions build.fsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if BOOTSTRAP

#r "paket:
source nuget/dotnetcore
source release/dotnetcore
source https://api.nuget.org/v3/index.json
nuget FSharp.Core ~> 4.1
nuget System.AppContext prerelease
Expand Down Expand Up @@ -87,8 +87,12 @@ let buildDir = "./build"
let testDir = "./test"
let docsDir = "./docs"
let apidocsDir = "./docs/apidocs/"
let nugetDncDir = "./nuget/dotnetcore"
let nugetLegacyDir = "./nuget/legacy"

let releaseDir = "./release"
let nugetDncDir = releaseDir </> "dotnetcore"
let chocoReleaseDir = nugetDncDir </> "chocolatey"
let nugetLegacyDir = releaseDir </> "legacy"

let reportDir = "./report"
let packagesDir = "./packages"
let buildMergedDir = buildDir </> "merged"
Expand Down Expand Up @@ -722,8 +726,8 @@ Target.create "BootstrapTestDotNetCore" (fun _ ->
let executeTarget target =
if clearCache then clear ()
let fileName =
if Environment.isUnix then "nuget/dotnetcore/Fake.netcore/current/fake"
else "nuget/dotnetcore/Fake.netcore/current/fake.exe"
if Environment.isUnix then nugetDncDir </> "Fake.netcore/current/fake"
else nugetDncDir </> "Fake.netcore/current/fake.exe"
Process.execSimple (fun info ->
{ info with
FileName = fileName
Expand Down Expand Up @@ -907,14 +911,14 @@ Target.create "CreateNuGet" (fun _ ->
!! (nugetToolsDir @@ "FAKE.exe") |> set64BitCorFlags
NuGet.NuGet.NuGet (setParams >> x64ify) "fake.nuspec"

let legacyZip = "nuget/fake-legacy-packages.zip"
let legacyZip = releaseDir </> "fake-legacy-packages.zip"
!! (nugetLegacyDir </> "**/*.nupkg")
|> Zip.zip nugetLegacyDir legacyZip
publish legacyZip
)

let runtimes =
[ "win7-x86"; "win7-x64"; "osx.10.11-x64"; "ubuntu.14.04-x64"; "ubuntu.16.04-x64" ]
[ "win7-x86"; "win7-x64"; "osx.10.11-x64"; "linux-x64" ]

module CircleCi =
let isCircleCi = Environment.environVarAsBool "CIRCLECI"
Expand Down Expand Up @@ -984,6 +988,7 @@ Target.create "_DotNetPackage" (fun _ ->
Environment.setEnvironVar "Authors" (String.separated ";" authors)
Environment.setEnvironVar "Description" projectDescription
Environment.setEnvironVar "PackageReleaseNotes" (release.Notes |> String.toLines)
Environment.setEnvironVar "SourceLinkCreate" "false"
Environment.setEnvironVar "PackageTags" "build;fake;f#"
Environment.setEnvironVar "PackageIconUrl" "https://raw.githubusercontent.com/fsharp/FAKE/fee4f05a2ee3c646979bf753f3b1f02d927bfde9/help/content/pics/logo.png"
Environment.setEnvironVar "PackageProjectUrl" "https://github.com/fsharp/Fake"
Expand Down Expand Up @@ -1013,19 +1018,19 @@ Target.create "DotNetCoreCreateZipPackages" (fun _ ->
Environment.setEnvironVar "Version" nugetVersion

// build zip packages
!! "nuget/dotnetcore/*.nupkg"
-- "nuget/dotnetcore/*.symbols.nupkg"
|> Zip.zip "nuget/dotnetcore" "nuget/dotnetcore/Fake.netcore/fake-dotnetcore-packages.zip"
!! (nugetDncDir </> "*.nupkg")
-- (nugetDncDir </> "*.symbols.nupkg")
|> Zip.zip nugetDncDir (nugetDncDir </> "Fake.netcore/fake-dotnetcore-packages.zip")

("portable" :: runtimes)
|> Seq.iter (fun runtime ->
let runtimeDir = sprintf "nuget/dotnetcore/Fake.netcore/%s" runtime
let runtimeDir = sprintf "%s/Fake.netcore/%s" nugetDncDir runtime
!! (sprintf "%s/**" runtimeDir)
|> Zip.zip runtimeDir (sprintf "nuget/dotnetcore/Fake.netcore/fake-dotnetcore-%s.zip" runtime)
|> Zip.zip runtimeDir (sprintf "%s/Fake.netcore/fake-dotnetcore-%s.zip" nugetDncDir runtime)
)

runtimes @ [ "portable"; "packages" ]
|> List.map (fun n -> sprintf "nuget/dotnetcore/Fake.netcore/fake-dotnetcore-%s.zip" n)
|> List.map (fun n -> sprintf "%s/Fake.netcore/fake-dotnetcore-%s.zip" nugetDncDir n)
|> List.iter publish
)

Expand All @@ -1047,31 +1052,31 @@ Target.create "DotNetCoreCreateChocolateyPackage" (fun _ ->
if Environment.isWindows
then p
else { p with ToolPath = altToolPath }
Directory.ensure "nuget/dotnetcore/chocolatey"
Directory.ensure chocoReleaseDir
Choco.packFromTemplate (fun p ->
{ p with
PackageId = "fake"
ReleaseNotes = release.Notes |> String.toLines
InstallerType = Choco.ChocolateyInstallerType.SelfContained
Version = chocoVersion
Files =
[ (System.IO.Path.GetFullPath @"nuget\dotnetcore\Fake.netcore\win7-x86") + @"\**", Some "bin", None
[ (System.IO.Path.GetFullPath (nugetDncDir </> @"Fake.netcore\win7-x86")) + @"\**", Some "bin", None
(System.IO.Path.GetFullPath @"src\VERIFICATION.txt"), Some "VERIFICATION.txt", None
(System.IO.Path.GetFullPath @"License.txt"), Some "LICENSE.txt", None ]
OutputDir = "nuget/dotnetcore/chocolatey" }
OutputDir = chocoReleaseDir }
|> changeToolPath) "src/Fake-choco-template.nuspec"

let name = sprintf "%s.%s" "fake" chocoVersion
let chocoPackage = sprintf "nuget/dotnetcore/chocolatey/%s.nupkg" name
let chocoTargetPackage = sprintf "nuget/dotnetcore/chocolatey/chocolatey-%s.nupkg" name
let chocoPackage = sprintf "%s/%s.nupkg" chocoReleaseDir name
let chocoTargetPackage = sprintf "%s/chocolatey-%s.nupkg" chocoReleaseDir name
File.Copy(chocoPackage, chocoTargetPackage, true)
publish chocoTargetPackage
)
Target.create "DotNetCorePushChocolateyPackage" (fun _ ->
let name = sprintf "%s.%s.nupkg" "fake" chocoVersion
let path = sprintf "nuget/dotnetcore/chocolatey/%s" name
let path = sprintf "%s/%s" chocoReleaseDir name
if not Environment.isWindows && not (File.exists path) && fromArtifacts then
Directory.ensure "nuget/dotnetcore/chocolatey"
Directory.ensure chocoReleaseDir
Shell.copyFile path (artifactsDir </> sprintf "chocolatey-%s" name)

let altToolPath = getChocoWrapper()
Expand All @@ -1089,77 +1094,39 @@ Target.create "CheckReleaseSecrets" (fun _ ->
secret.Force() |> ignore
)

let executeFPM args =
printfn "%s %s" "fpm" args
Shell.Exec("fpm", args=args, dir="bin")


type SourceType =
| Dir of source:string * target:string
type DebPackageManifest =
{
SourceType : SourceType
Name : string
Version : string
Dependencies : (string * string option) list
BeforeInstall : string option
AfterInstall : string option
ConfigFile : string option
AdditionalOptions: string list
AdditionalArgs : string list
}
(*
See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
Ask @theangrybyrd (slack)

{
SourceType = Dir("./MyCoolApp", "/opt/")
Name = "mycoolapp"
Version = originalVersion
Dependencies = [("mono-devel", None)]
BeforeInstall = "../deploy/preinst" |> Some
AfterInstall = "../deploy/postinst" |> Some
ConfigFile = "/etc/mycoolapp/default.conf" |> Some
AdditionalOptions = []
AdditionalArgs =
[ "../deplo/mycoolapp.service=/lib/systemd/system/" ]
}
23:08
so thats stuff i you want to setup like users or what not
23:09
adding to your path would be in the after script postinst
23:10
setting permissions also, its just a shell script
23:10
might also want a prerm and postrm if you want to play nice on cleanup
*)

Target.create "DotNetCoreCreateDebianPackage" (fun _ ->
let createDebianPackage (manifest : DebPackageManifest) =
let argsList = ResizeArray<string>()
argsList.Add <| match manifest.SourceType with
| Dir (_) -> "-s dir"
argsList.Add <| "-t deb"
argsList.Add <| "-f"
argsList.Add <| (sprintf "-n %s" manifest.Name)
argsList.Add <| (sprintf "-v %s" (manifest.Version.Replace("-","~")))
let dependency name version =
match version with
| Some v -> sprintf "-d '%s %s'" name v
| None -> sprintf "-d '%s'" name
argsList.AddRange <| (Seq.map(fun (a,b) -> dependency a b) manifest.Dependencies)
manifest.BeforeInstall |> Option.iter(sprintf "--before-install %s" >> argsList.Add)
manifest.AfterInstall |> Option.iter(sprintf "--after-install %s" >> argsList.Add)
manifest.ConfigFile |> Option.iter(sprintf "--config-files %s" >> argsList.Add)
argsList.AddRange <| manifest.AdditionalOptions
argsList.Add <| match manifest.SourceType with
| Dir (source,target) -> sprintf "%s=%s" source target
argsList.AddRange <| manifest.AdditionalArgs
if argsList |> String.concat " " |> executeFPM <> 0 then
failwith "Failed creating deb package"
ignore createDebianPackage
()

DotNet.restore (fun opt ->
{ opt with
Common = { opt.Common with WorkingDirectory = "src/app/fake-cli/" } |> dtntSmpl
Runtime = Some "linux-x64"}) "fake-cli.fsproj"

let runtime = "linux-x64"
let targetFramework = "netcoreapp2.1"
let args =
[
sprintf "/t:%s" "CreateDeb"
sprintf "/p:TargetFramework=%s" targetFramework
sprintf "/p:CustomTarget=%s" "CreateDeb"
sprintf "/p:RuntimeIdentifier=%s" runtime
sprintf "/p:Configuration=%s" "Release"
sprintf "/p:PackageVersion=%s" simpleVersion
] |> String.concat " "
let result =
DotNet.exec (fun opt ->
{ opt with
WorkingDirectory = "src/app/fake-cli/" } |> dtntSmpl
) "msbuild" args
if result.OK |> not then
failwith "Debian package creation failed"


let fileName = sprintf "fake-cli.%s.%s.deb" simpleVersion runtime
let sourceFile = sprintf "src/app/fake-cli/bin/Release/%s/%s/%s" targetFramework runtime fileName
Directory.ensure nugetDncDir
let target = sprintf "%s/%s" nugetDncDir fileName
File.Copy(sourceFile, target, true)
publish target
)


Expand Down Expand Up @@ -1199,8 +1166,8 @@ Target.create "DotNetCorePushNuGet" (fun _ ->
++ (templateDir </> "*/*.fsproj")
|> Seq.iter(fun proj ->
let projName = Path.GetFileName(Path.GetDirectoryName proj)
!! (sprintf "nuget/dotnetcore/%s.*.nupkg" projName)
-- (sprintf "nuget/dotnetcore/%s.*.symbols.nupkg" projName)
!! (sprintf "%s/%s.*.nupkg" nugetDncDir projName)
-- (sprintf "%s/%s.*.symbols.nupkg" nugetDncDir projName)
|> Seq.iter (nugetPush 4))
)

Expand Down Expand Up @@ -1255,9 +1222,14 @@ Target.create "FastRelease" (fun _ ->
Git.Branches.tag gitDirectory simpleVersion
Git.Branches.pushTag gitDirectory url simpleVersion

let linuxRuntime = "linux-x64"
let debFileName = sprintf "fake-cli.%s.%s.deb" simpleVersion linuxRuntime
let debTarget = sprintf "%s/%s" nugetDncDir debFileName

let files =
runtimes @ [ "portable"; "packages" ]
|> List.map (fun n -> sprintf "nuget/dotnetcore/Fake.netcore/fake-dotnetcore-%s.zip" n)
|> List.map (fun n -> sprintf "%s/Fake.netcore/fake-dotnetcore-%s.zip" nugetDncDir n)
|> fun l -> l @ [ debTarget ]

GitHub.createClientWithToken token
|> GitHub.draftNewRelease github_release_user gitName simpleVersion (release.SemVer.PreRelease <> None) release.Notes
Expand Down Expand Up @@ -1296,27 +1268,33 @@ Target.create "PrepareArtifacts" (fun _ ->
|> Seq.toList
Trace.tracefn "files: %A" files
files
|> Shell.copy "nuget/dotnetcore/Fake.netcore"
|> Shell.copy (nugetDncDir </> "Fake.netcore")

unzip "nuget/dotnetcore" (artifactsDir </> "fake-dotnetcore-packages.zip")
unzip nugetDncDir (artifactsDir </> "fake-dotnetcore-packages.zip")

if Environment.isWindows then
Directory.ensure "nuget/dotnetcore/chocolatey"
Directory.ensure chocoReleaseDir
let name = sprintf "%s.%s.nupkg" "fake" chocoVersion
Shell.copyFile (sprintf "nuget/dotnetcore/chocolatey/%s" name) (artifactsDir </> sprintf "chocolatey-%s" name)
Shell.copyFile (sprintf "%s/%s" chocoReleaseDir name) (artifactsDir </> sprintf "chocolatey-%s" name)
else
unzip "." (artifactsDir </> "chocolatey-requirements.zip")

Directory.ensure "nuget/legacy"
unzip "nuget/legacy" (artifactsDir </> "fake-legacy-packages.zip")
Directory.ensure nugetLegacyDir
unzip nugetLegacyDir (artifactsDir </> "fake-legacy-packages.zip")

Directory.ensure "temp/build"
!! ("nuget" </> "legacy" </> "*.nupkg")
!! (nugetLegacyDir </> "*.nupkg")
|> Seq.iter (fun pack ->
unzip "temp/build" pack
)
Shell.copyDir "build" "temp/build" (fun _ -> true)

let linuxRuntime = "linux-x64"
let debFileName = sprintf "fake-cli.%s.%s.deb" simpleVersion linuxRuntime
Directory.ensure nugetDncDir
let debTarget = sprintf "%s/%s" nugetDncDir debFileName
Shell.copyFile debTarget (artifactsDir </> debFileName)

let unzipIfExists dir file =
Directory.ensure dir
if File.Exists file then
Expand Down Expand Up @@ -1487,6 +1465,8 @@ let prevDocs =
==> "CreateNuGet"
==> "CopyLicense"
=?> ("DotNetCoreCreateChocolateyPackage", Environment.isWindows)
==> "DotNetCoreCreateDebianPackage"
=?> ("GenerateDocs", BuildServer.isLocalBuild && Environment.isWindows)
==> "Default"
(if fromArtifacts then "PrepareArtifacts" else "_AfterBuild")
=?> ("GenerateDocs", not <| Environment.hasEnvironVar "SkipDocs")
Expand Down
6 changes: 1 addition & 5 deletions fake.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/usr/bin/env bash

# Install .NET Core (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script)
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel Current

PATH="~/.dotnet:$PATH"
dotnet restore build.proj
dotnet fake $@
dotnet fake $@
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk" : {
"version": "2.1.300"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#r "paket:
storage: none
source https://nuget.org/api/v2
source ../../../nuget/dotnetcore
source ../../../release/dotnetcore
//source https://ci.appveyor.com/nuget/paket

nuget Fake.Core.Context prerelease"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
storage: none
source https://nuget.org/api/v2
source ..\..\../../../nuget/dotnetcore
source ..\..\../../../release/dotnetcore

nuget Fake.Core.Target prerelease
nuget FSharp.Core prerelease
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if FAKE_DEPENDENCIES
#r "paket:
source https://nuget.org/api/v2
source ../../../nuget/dotnetcore
source ../../../release/dotnetcore

nuget Fake.Core.Target prerelease
nuget System.Reactive.Compatibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#r "paket:
storage: none
source https://nuget.org/api/v2
source ../../../nuget/dotnetcore
source ../../../release/dotnetcore
//source https://ci.appveyor.com/nuget/paket

nuget Fake.Runtime prerelease
Expand Down
Loading