Skip to content

Commit

Permalink
Remove nant from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Rombauts committed Dec 11, 2014
1 parent ca7438c commit 653911e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ open Fake.AssemblyInfoFile
let buildDir = "./build/"
let cmdDir = "./build/exe/"
let msBuildDir = "./build/msbuild/"
let nantDir = "./build/nant/"
let powerShellDir = "./build/powershell/"
let guiDir = "./build/gui/"
let testDir = "./test/"
let deployDir = "./deploy/"

// version info
let version = environVar "version" // or retrieve from CI server


// Targets
Target "Clean" (fun _ ->
CleanDirs [cmdDir; msBuildDir; nantDir; powerShellDir; guiDir; buildDir; testDir; deployDir]
CleanDirs [cmdDir; msBuildDir; powerShellDir; guiDir; buildDir; testDir; deployDir]
)

Target "AssemblyInfo" (fun _ ->
Expand All @@ -46,12 +45,6 @@ Target "BuildMsBuild" (fun _ ->
|> Log "AppBuild-Output: "
)

Target "BuildNAnt" (fun _ ->
!! "src/Pickles/Pickles.NAnt/Pickles.NAnt.csproj"
|> MSBuildRelease nantDir "Build"
|> Log "AppBuild-Output: "
)

Target "BuildPowerShell" (fun _ ->
!! "src/Pickles/Pickles.PowerShell/Pickles.PowerShell.csproj"
|> MSBuildRelease powerShellDir "Build"
Expand All @@ -70,15 +63,14 @@ Target "BuildTest" (fun _ ->
|> Log "AppBuild-Output: "
)

let createZip (packageType : string) =
let createZip (packageType : string) =
!! (buildDir + "/" + packageType + "/*.*") -- "*.zip"
|> Zip (buildDir + packageType) (deployDir + "Pickles-" + packageType + "-" + version + ".zip")

Target "Zip" (fun _ ->
createZip "exe"
createZip "gui"
createZip "msbuild"
createZip "nant"
createZip "powershell"
)

Expand All @@ -92,7 +84,6 @@ Target "Default" (fun _ ->
==> "AssemblyInfo"
==> "BuildCmd"
==> "BuildMsBuild"
==> "BuildNAnt"
==> "BuildPowerShell"
==> "BuildGui"
==> "BuildTest"
Expand Down

0 comments on commit 653911e

Please sign in to comment.