Skip to content

Commit

Permalink
updating build.sh to use older version of FAKE
Browse files Browse the repository at this point in the history
unfortunately FAKE 3 broke fsiargs
fsprojects/FAKE#500
  • Loading branch information
caindy committed Jul 15, 2014
1 parent 02f5a82 commit 0250d4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
export MONO=mono

mono .nuget/NuGet.exe install Nuget.Core -OutputDirectory packages -ExcludeVersion

if [ ! -e packages/FAKE/tools/FAKE.exe ]; then
mono .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion
mono .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion -version "2.18.2"
fi
if [ ! -e packages/SourceLink.Fake/Tools/Fake.fsx ]; then
mono .nuget/NuGet.exe install SourceLink.Fake -OutputDirectory packages -ExcludeVersion
Expand Down
13 changes: 12 additions & 1 deletion build.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
// FAKE build script
// --------------------------------------------------------------------------------------

#r @"packages/Nuget.Core/lib/net40-Client/NuGet.Core.dll"
#r @"packages/FAKE/tools/FakeLib.dll"
#load "packages/SourceLink.Fake/Tools/Fake.fsx"
open Fake
open Fake.Git
open Fake.AssemblyInfoFile
open Fake.ReleaseNotesHelper
open System
#if MONO
#else
#load "packages/SourceLink.Fake/Tools/Fake.fsx"
open SourceLink
#endif


// --------------------------------------------------------------------------------------
// START TODO: Provide project-specific details below
Expand Down Expand Up @@ -109,6 +114,8 @@ Target "RunTests" (fun _ ->
OutputFile = "TestResults.xml" })
)

#if MONO
#else
// --------------------------------------------------------------------------------------
// SourceLink allows Source Indexing on the PDB generated by the compiler, this allows
// the ability to step through the source code of external libraies https://github.com/ctaggart/SourceLink
Expand All @@ -127,6 +134,7 @@ Target "SourceLink" (fun _ ->
Pdbstr.exec proj.OutputFilePdb proj.OutputFilePdbSrcSrv
)
)
#endif

// --------------------------------------------------------------------------------------
// Build a NuGet package
Expand Down Expand Up @@ -188,7 +196,10 @@ Target "All" DoNothing
==> "CleanDocs"
==> "GenerateDocs"
==> "ReleaseDocs"
#if MONO
#else
=?> ("SourceLink", Pdbstr.tryFind().IsSome )
#endif
==> "NuGet"
==> "Release"

Expand Down

0 comments on commit 0250d4c

Please sign in to comment.