Load psake-config.ps1 from module directory when there is no one in configdir #55

Closed
wants to merge 30 commits into
from

Conversation

Projects
None yet
Member

lanwin commented Jan 30, 2013

Try load psake-config.ps1 from module directory when there if no psake-config.ps1 in configdir. If you want to put your default modules next to your psake distribution, you need a way to change the default configuration from you psake folder instead from the folder where the build script is.

pedroreys and others added some commits Feb 10, 2012

@pedroreys @lanwin pedroreys Adds support to defining an alias to a task.
Example:
  task Task_With_Descriptive_Name -alias twdn {}

By doing that I can now call .\psake.ps1 twdn and have the
Task_With_Descriptive_Name executed
560bfb2
@pedroreys @lanwin pedroreys fixes the task name when using aliases so that the casing is correct 9098c89
@JamesKovacs @lanwin JamesKovacs Defaulted psake to .NET 4.0 9f91d9f
@JamesKovacs @lanwin JamesKovacs Switched to semantic versioning 48d56a6
@JamesKovacs @lanwin JamesKovacs Fixed formatting in .nuspec c78ee26
@kblooie @lanwin kblooie Added test for issue with running a module function that depends on a…
… function from another module
f38b0ab
@idavis @lanwin idavis Adding ability to use a scriptblock when initializing an invoke-psake…
… call in builds.
7137545
@Iristyle @lanwin Iristyle Internal function names have been changed from Verb-Noun to VerbNoun …
…(without dash) in an effort to reduce potential for external collisions. Since external modules may be loaded with Verb-Noun naming after these internal functions are brought into scope, common functions like Resolve-Error are prone to get wiped out.. and to further lead to difficult to diagnose build problems.

See discussion #33
fabcda0
@Iristyle @lanwin Iristyle Minor tweaks to error output to make it consistent with what a build …
…server like Jenkins might expect based on similarity to MSBuild output -- this is part one of the modification

Part two will involve incorporating a friendlier single line error message

#32
808148c
@Iristyle @lanwin Iristyle Replaced existing ResolveError with a modified variant that includes …
…a short view, so that exceptions can be represented as one-liners for build output parsing purposes (it special cases Sql Exceptions as well to dig into the real errors)

Relies on new SelectObjectWithDefault function that can safely read properties off of objects w/out adding to the $Error collection (oddly, I've found this necessary when using WinRM, so I left that code in)

For instance, a short representation of an Error looks like this:
Error:  At C:\source\project\build\modules\Sql.psm1:175 char:36 +   [Void]$database.ExecuteNonQuery <<<< ($commands) [<<==>>] Exception: Exception calling "ExecuteNonQuery" with "1" argument(s): "ExecuteNonQuery failed for Database 'a73fa37f891e46bbab9e2b23b8f87c56'. " --> ExecuteNonQuery failed for Database 'a73fa37f891e46bbab9e2b23b8f87c56'.  --> An exception occurred while executing a Transact-SQL statement or batch. --> Foreign key 'fk_file_cabinet_num' references invalid column 'file_cabinet_num' in referencing table 'file_cabinet_files'.Could not create constraint. See previous errors. --> (Line [4] Proc
edure [] Class [16]  Number [1769] State [1] )

This is much more actionable / easier to read than 50 lines of output from an Exception with 4 InnerExceptions
fff5f6f
@jpoehls @lanwin jpoehls The exit code from PowerShell was not being used as the exit code fro…
…m the CMD script. This update fixes that so that the CMD script will exit with the same code that the PowerShell script exited with.
68fe0e6
@ferventcoder @lanwin ferventcoder wrapping the chocolateyInstall in a try catch and changing the path t…
…o chocolatey install to use the environment variable ($env:ChocolateyInstall)
976466f
@damianh @lanwin damianh Added NuGet.exe so NuGetPackageBuilder.cmd will run without nuget hav…
…ing to be on the path.
a1a1a5e
@damianh @lanwin damianh Replaced NuGetPackageBuilder.cmd with a powershell equivalent (it's a…
… powershell lib after all)
0df4889
@damianh @lanwin damianh Bumped version to 4.2 fed1fa6
@damianh @lanwin damianh Fixed package script to exclude nuget directory and nuget.ext. Bumped…
… package version to 4.2.0.1
53bb4f7
@kblooie @lanwin kblooie Added config option to import modules into global scope. Disabled nam…
…e checking for modules
c589ff6
@mwrock @lanwin mwrock add alias to task documentation and format as list to allow for wide …
…descriptions
83c44db
@yadazula @lanwin yadazula turkish i problem fix 3a93504
@JamesKovacs @lanwin JamesKovacs Renamed spec to follow naming convention 1409b20
@JamesKovacs @lanwin JamesKovacs Fixed missing default task in task_with_alias_should_pass.ps1 ba38ea4
@jeffreyabecker @lanwin jeffreyabecker fixed bug in write-coloredoutput. under alternative hosts that dont s…
…upport coloring it wasnt checking for color support and crashing
1c722b0
@jeffreyabecker @lanwin jeffreyabecker Fixed spec writing_psake_variables_should_pass.ps1 failure. The spec …
…was checking .framework -eq '3.5' when this was never explicitly set. it seems like this spec was making incorrect assumptions about the framework it would be executed under.
3ac381c
@jeffreyabecker @lanwin jeffreyabecker deleted test that doesnt seem to have ever worked e4351e6
@JamesKovacs @lanwin JamesKovacs Extracted license.txt and updated copyright date 8ee664b
@JamesKovacs @lanwin JamesKovacs Added link to MIT license to README.markdown 3d00688
@JamesKovacs @lanwin JamesKovacs Fixed markdown for link to license 59541e8
@JamesKovacs @lanwin JamesKovacs Really fixed markdown for link to license 6ae7e29
@ArturDorochowicz @lanwin ArturDorochowicz Ensure TabExpansion function exists before rename.
Prevents an error in environment where there is no initial TabExpansion function defined.
fcd09c6
@lanwin lanwin Try load psake-config.ps1 from module directory
when there if no psake-config.ps1 in configdir. If you want to put your
default modules next to your psake distribution, you need a way to
change the default configuration from you psake folder instead from the
folder where the build script is.
b703f3b
Owner

damianh commented Nov 16, 2013

A lot of activity in this PR, was it completed? Anyone care to comment on it's status?

Owner

damianh commented Mar 31, 2014

Closing due to high probability this is just plain out of date. Re-open if not the case.

damianh closed this Mar 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment