Commit graph

1975 commits

Author SHA1 Message Date
Andrew Schwartzmeyer 70f921e824 Update AppVeyor to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer 995eaf4c0f Update Travis to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer a031dd9095 Remove deprecated bootstrap.sh 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer d94a040229 Add Start-PSBootstrap function
Installs Open PowerShell build dependenices on all platform; deprecates
`bootstrap.sh`.
2016-04-13 19:24:04 -07:00
Andrew Schwartzmeyer a5dfe80d9a Download and install packages for Ubuntu and OS X
This both downloads the v0.3.0 release for the current platform and now
also installs it (requiring `sudo`). Should probably rename.
2016-04-13 18:58:23 -07:00
Andy Schwartzmeyer 3d56952369 Merge pull request #842 from PowerShell/andschwa/build-dwim
Import-Module PowerShellGitHubDev in build.sh
2016-04-13 18:58:07 -07:00
Andrew Schwartzmeyer 9fc0dd451b Import-Module PowerShellGitHubDev in build.sh
Make it Do What I Mean.
2016-04-13 18:56:23 -07:00
Andy Schwartzmeyer d43d4f6549 Merge pull request #840 from PowerShell/andschwa/update-pester
Bump Pester with fixes
2016-04-13 15:16:09 -07:00
Andrew Schwartzmeyer e210cf14c0 Bump Pester with fixes 2016-04-13 14:57:20 -07:00
Andy Schwartzmeyer 831343f096 Merge pull request #825 from PowerShell/andschwa/master
Update files from psl-monad source-depot [SD:695331]
2016-04-13 14:14:14 -07:00
Andy Schwartzmeyer 7048b5774c Merge pull request #834 from PowerShell/psreadline2
Host code to enable PSReadLine, and remove checking of .NET Framework
2016-04-13 13:57:45 -07:00
Andy Schwartzmeyer 2a7d6a51c6 Merge pull request #814 from PowerShell/andschwa/recursive-alc
Fix stack overflow exception when loading assemblies
2016-04-13 13:54:38 -07:00
George Fleming eb9daf0238 Host code to enable PSReadLine, and remove checking of .NET Framework version if CORECLR 2016-04-13 11:42:59 -07:00
Andy Schwartzmeyer f38a11fc02 Merge pull request #807 from PowerShell/GetVariablePesterUnitTest
Add Get-Variable Pester Unit Test
2016-04-13 11:11:08 -07:00
Sergei Vorobev 273328d06f Update files from psl-monad source-depot [SD:695331]
Corresponds to 1218e29752ba4
2016-04-13 09:41:34 -07:00
JumpingYang001 d0c759f10e Update indent for Get-Variable Pester unit test 2016-04-13 09:41:04 -07:00
JumpingYang001 191f232519 Update fixed comments from PR for Get-Variable Pester unit test 2016-04-13 09:41:04 -07:00
JumpingYang001 0531914377 Enable bug777 skip for Get-Variable 2016-04-13 09:41:04 -07:00
JumpingYang001 95eade1305 Add Get-Variable Pester Unit Test 2016-04-13 09:41:04 -07:00
Andy Schwartzmeyer 5b880dbbb8 Merge pull request #782 from PowerShell/ImportAliasPesterUnitTest
Add Import-Alias Pester Unit test
2016-04-13 09:40:28 -07:00
Andrew Schwartzmeyer 1bc2a9e576 Fix stack overflow exception when loading assemblies
When an assembly that exists outside of the trusted platform assembly
list but in the GAC on Windows was loaded, the use of `Assembly.Load`
before the `LoadFromAssemblyPath` caused a recursive loop to occur.

This happens because an `Assembly.Load` on a not-yet-loaded
assembly is overridden, thus calling back into the
`AssemblyLoadContext.Load` override.

By attempting to load from the file path first, we avoid this loop.
However, loading TPA assemblies by their path throws an exception, so
now we catch this particular exception and attempt the load through
`Assembly.Load`.

This is safe for TPA assemblies since they're already loaded, thus the
`Assembly.Load` does not re-load the assembly, but simply returns it.
2016-04-13 09:40:16 -07:00
JumpingYang001 6184dec3ad Update stand-alone tests for Import-Alias Pester unit test 2016-04-13 02:42:34 -07:00
Andy Schwartzmeyer ceef777d5e Merge pull request #826 from PowerShell/andschwa/remove-omi
Remove OMI and PSRP
2016-04-12 16:27:06 -07:00
Andrew Schwartzmeyer 841f76ec37 Update Git setup documentation
Now that everyone needs all the submodules. Much simpler.
2016-04-12 16:16:17 -07:00
Andrew Schwartzmeyer 285253da02 Disable xUnit tests on Travis temporarily
Until #806 is resolved.
2016-04-12 16:00:05 -07:00
Andrew Schwartzmeyer b8f326adf5 Redirect PSRP documentation to other repo 2016-04-12 15:59:38 -07:00
Andrew Schwartzmeyer a2fc6c330a Remove PSRP building documentation
Migrated to PSRP repository
2016-04-12 15:18:27 -07:00
Andrew Schwartzmeyer 1f19758614 Remove OMI and provider submodules 2016-04-12 12:10:54 -07:00
Andy Schwartzmeyer d621b44034 Merge pull request #813 from PowerShell/andschwa/download-v0.3.0
Update download.sh to get v0.3.0 deb asset
2016-04-11 13:19:13 -07:00
Andrew Schwartzmeyer ea53a15642 Update download.sh to get v0.3.0 deb asset 2016-04-11 12:41:58 -07:00
Andy Schwartzmeyer 2629fff55e Merge pull request #812 from PowerShell/andschwa/tests
Remove alias tests for Write-Output
2016-04-11 11:32:12 -07:00
Andrew Schwartzmeyer 735a702f1c Remove alias tests for Write-Output
The `echo` and `write` aliases were removed, which make these tests
inaccurate (but did not fail them).
2016-04-11 10:46:39 -07:00
Andy Schwartzmeyer bfca886f36 Merge pull request #811 from PowerShell/andschwa/build-24011
Bump .NET Core packages to build 24011
2016-04-11 10:46:11 -07:00
Andrew Schwartzmeyer 71b55abf66 Bump .NET Core packages to build 24011
And update the CorePsTypeCatalog.
2016-04-11 10:37:15 -07:00
Andy Schwartzmeyer 7f7c13e9b9 Merge pull request #810 from PowerShell/andschwa/prepare-v0.3.0
Update Linux installation documentation for v0.3.0
2016-04-11 10:06:07 -07:00
Andrew Schwartzmeyer e0547c81ff Update Linux installation documentation for v0.3.0 2016-04-11 09:50:58 -07:00
Andy Schwartzmeyer 5e0528ffe9 Merge pull request #805 from PowerShell/andschwa/pspackage
Improve Start-PSPackage
2016-04-11 09:17:57 -07:00
JumpingYang001 5c341e7d7f Remove Context for Import-Alias pester unit test 2016-04-10 19:38:35 -07:00
Andrew Schwartzmeyer 0afd4c2f98 Improve Start-PSPackage
- Now checks that previous Start-PSBuild was with -Publish
- Uses $script:Output automatically
- Uses /opt/microsoft/powershell on Linux per FHS
- Uses /usr/local/microsoft/powershell on OS X per FHS
- Specifies "--rpm-os linux" for RPM packages built elsewhere
- Creates symlink on demand for packaging
- Puts symlink in /usr/(local)/bin as it is expected to be in PATH
- Uses $Arguments array for better syntax
- Resolves #800

Note that if the target of the powershell symlink exists, `fpm` aborts
with a `utime` error on OS X.
2016-04-09 19:44:55 -07:00
Andrew Schwartzmeyer 865f174e22 Clean up comparison operators in build module 2016-04-09 18:56:14 -07:00
Andy Schwartzmeyer 244b41a974 Merge pull request #804 from PowerShell/andschwa/symbolic-target
Allow creation of symlink to non-existent target
2016-04-09 18:55:21 -07:00
Andrew Schwartzmeyer 3a43126a2e Allow creation of symlink to non-existent target
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with `mklink` and `ln -s` respectively.

Note that targets for hard links must exist, thus we check specifically
for symbolic links.

Both the path globber in session state and the `New-Item` implementation
needed to be fixed to allow the target not to exist.

Resolves #801.

Also enable symbolic link tests on Windows.
2016-04-09 18:45:23 -07:00
Andy Schwartzmeyer be235b0f0b Merge pull request #803 from PowerShell/andschwa/help-online
Fix Get-Help -Online
2016-04-09 18:20:27 -07:00
Andrew Schwartzmeyer 70c23dacd7 Fix Get-Help -Online
While Windows will automatically open a URL used as a process by
launching a browser, OS X needs to use `open <URL>`, and Linux needs to
use `xdg-open <URL>` (the most distribution-independent way).

Resolves #802.
2016-04-09 18:05:49 -07:00
Andy Schwartzmeyer 76ad94d8a7 Merge pull request #798 from PowerShell/andschwa/pager
Respect PAGER variable and default to less on Linux
2016-04-08 22:04:57 -07:00
Andy Schwartzmeyer 5ec7eb46cb Merge pull request #797 from PowerShell/andschwa/packages
Bump .NET Core packages
2016-04-08 22:04:43 -07:00
Andrew Schwartzmeyer 022a63c6d2 Fix whitespace in csharp/project.json 2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer bd03b51c32 Respect PAGER variable and default to less on Linux 2016-04-08 21:52:14 -07:00
Andrew Schwartzmeyer 7ace2b6b64 Fix NuGet warnings by depending on NuGet.Packaging.Core
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer feef62c5ea Bump .NET Core packages to 24004 2016-04-08 21:50:24 -07:00