forked from OctopusDeploy/OctopusClients
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made it easier to use the command utilities
- Loading branch information
1 parent
477110f
commit b1df1b5
Showing
4 changed files
with
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Import-Module .\Tools\Build.psm1 | ||
|
||
clear | ||
Write-Host "Loaded OctopusTools commands:" -foregroundcolor Green | ||
Get-Command | where-object { $_.Name -like "*OctopusTools*" } |
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,29 +1,21 @@ | ||
$msbuild = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" | ||
|
||
function Build-Release ([string]$BuildNumber=1) | ||
function Create-OctopusToolsRelease ([string]$BuildNumber=1) | ||
{ | ||
<# | ||
.Synopsis | ||
Builds a complete release (compile, test, ILMerge, NuGet package, version stamp) | ||
#> | ||
& $msbuild "Tools\Build.proj" /p:build_number=$BuildNumber /t:BuildAndPublish | ||
Revert-Changes | ||
} | ||
|
||
function Build-Package | ||
function Create-OctopusToolsPackage | ||
{ | ||
<# | ||
.Synopsis | ||
Compiles, tests, runs ILMerge | ||
#> | ||
& $msbuild "Tools\Build.proj" /t:BuildAndPackage /v:q | ||
Revert-Changes | ||
} | ||
|
||
function Build-Compile | ||
{ | ||
& $msbuild "Tools\Build.proj" /t:Compile /v:q | ||
} | ||
|
||
function Build-Test | ||
{ | ||
& $msbuild "Tools\Build.proj" /t:Test /v:q | ||
} | ||
|
||
function Revert-Changes | ||
{ | ||
} | ||
|
||
Export-ModuleMember -function * -alias * |
This file was deleted.
Oops, something went wrong.