forked from x97mdr/pickles
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
145 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// include Fake lib | ||
#r @"packages\FAKE\tools\FakeLib.dll" | ||
open Fake | ||
|
||
// Properties | ||
let deployDir = "./deploy/" | ||
let cmdDir = "./build/exe/" | ||
let msBuildDir = "./build/msbuild/" | ||
let powerShellDir = "./build/powershell/" | ||
let packagingDir = "./packaging/" | ||
|
||
// version info | ||
let version = environVar "version" // or retrieve from CI server | ||
|
||
// Targets | ||
Target "Clean" (fun _ -> | ||
CleanDirs [packagingDir; ] | ||
) | ||
|
||
|
||
Target "CreatePackageCommandLine" (fun _ -> | ||
// Copy all the package files into a package folder | ||
CopyFiles packagingDir [cmdDir + "pickles.exe"; cmdDir + "NLog.config" ] | ||
|
||
NuGet (fun p -> | ||
{p with | ||
OutputPath = deployDir | ||
WorkingDir = packagingDir | ||
Version = version | ||
Publish = false }) | ||
"src/Pickles/Pickles.CommandLine/Pickles.CommandLine.nuspec" | ||
) | ||
|
||
Target "CreatePackageMsBuild" (fun _ -> | ||
// Copy all the package files into a package folder | ||
CopyFiles packagingDir [msBuildDir + "PicklesDoc.Pickles.MSBuild.Tasks.dll"; ] | ||
|
||
NuGet (fun p -> | ||
{p with | ||
OutputPath = deployDir | ||
WorkingDir = packagingDir | ||
Version = version | ||
Publish = false }) | ||
"src/Pickles/Pickles.MSBuild/Pickles.MSBuild.nuspec" | ||
) | ||
|
||
Target "CreatePackagePowerShell" (fun _ -> | ||
// Copy all the package files into a package folder | ||
CopyFiles packagingDir [powerShellDir + "PicklesDoc.Pickles.PowerShell.dll"; "src/Pickles/Pickles.PowerShell/init.ps1" ] | ||
|
||
NuGet (fun p -> | ||
{p with | ||
OutputPath = deployDir | ||
WorkingDir = packagingDir | ||
Version = version | ||
Publish = false }) | ||
"src/Pickles/Pickles.PowerShell/Pickles.nuspec" | ||
) | ||
|
||
Target "CreatePackage" (fun _ -> | ||
trace ("Starting build of nuget packages version " + version) | ||
DeleteDir packagingDir | ||
) | ||
|
||
// Dependencies | ||
"Clean" | ||
==> "CreatePackageCommandLine" | ||
==> "CreatePackageMsBuild" | ||
==> "CreatePackagePowerShell" | ||
==> "CreatePackage" | ||
|
||
|
||
// start build | ||
RunTargetOrDefault "CreatePackage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
|
||
"packages\FAKE\tools\Fake.exe" test.fsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// include Fake lib | ||
#r @"packages\FAKE\tools\FakeLib.dll" | ||
open Fake | ||
|
||
|
||
// Properties | ||
let testDir = "./test/" | ||
|
||
Target "Test" (fun _ -> | ||
!! (testDir + "PicklesDoc.Pickles.Test.dll") | ||
|> NUnit (fun p -> | ||
{p with | ||
DisableShadowCopy = true; | ||
OutputFile = testDir + "TestResults.xml" }) | ||
) | ||
|
||
|
||
// start build | ||
RunTargetOrDefault "Test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FOR %%A IN (Html Dhtml Word Excel Dita) DO .\deploy\pickles-%1\exe\Pickles.exe -f=.\src\Pickles\Examples\ -o=.\Output\%%A\ --sn=Pickles --sv=%1 --df=%%A | ||
FOR %%A IN (Html Dhtml Word Excel Dita JSON) DO .\deploy\pickles-%1\exe\Pickles.exe -f=.\src\Pickles\Examples\ -o=.\Output\%%A\ --sn=Pickles --sv=%1 --df=%%A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters