Commit graph

1104 commits

Author SHA1 Message Date
Andy Schwartzmeyer 0677ed522c Merge pull request #557 from PowerShell/readline
Improve tab-completion and up/down arrows
2016-02-19 13:22:16 -08:00
Andrew Schwartzmeyer 2e90b29cc8 Bump .NET Core packages to rc3-23819
Brings in fix for #546 and so enables the use of the PowerShell in non
xterm terminal emulators (like Tmux and screen).
2016-02-19 09:57:21 -08:00
George Fleming 8cbb08964c Fix a special down arrow scenario 2016-02-19 09:10:40 -08:00
George Fleming 23bdcdd330 Adding monad branch 2016-02-18 15:32:46 -08:00
George Fleming 3c2ec835c0 New changes to readline.cs to improve tab-completion and up/down arrow 2016-02-18 15:32:31 -08:00
Sergei Vorobev 16447a8326 Update README.md [skip ci]
Add info about msbuild alias
2016-02-18 13:29:10 -08:00
Andy Schwartzmeyer ce05a3e0b0 Update README.md 2016-02-18 12:45:53 -08:00
Andy Schwartzmeyer 198e667b4e Merge pull request #555 from PowerShell/cli-release
Refactor projects for use with .NET CLI 1.0.0
2016-02-18 12:24:47 -08:00
Andrew Schwartzmeyer 5c0abec45b Pin CLI to 1.0.0.001425 and update readme 2016-02-18 10:06:56 -08:00
Andrew Schwartzmeyer e6e4dcafbe Build with new framework and new CLI
All libraries now use the framework `netstandard1.5`, and import the
`dnxcore50` and `portable` frameworks. The app that is published,
Microsoft.PowerShell.Linux.Host, that is, the top-level dependency that
emits an executable, instead targets `netstandardapp1.5` and has a new
`runtimes` key so that .NET CLI's `restore` and `publish` commands know
which runtime implementations to resolve.

When switching to the new CLI, we needed to fix how we specified our
dependencies. In particular, the .NET CLI team helped me figure out how
to download packages that are reference assembly only on Linux, with
implementations on Windows. The result of this is the new `frameworks`
setup.

Additionally, we were incorrectly specifying our build dependencies;
that is, projects we also build (not packages). The solution was much
cleaner. We removed the `type: build` section and replaced it with the
version `1.0.0-*` that all our projects currently use.

The `project.json` files also had their names, descriptions,
indentation, and versions fixed.

The build scripts were simplified.
2016-02-18 10:06:56 -08:00
Sergei Vorobev 8dab22a545 Merge pull request #554 from PowerShell/vors/security
Vors/security
2016-02-17 19:55:53 -08:00
Sergei Vorobev 6982fee02d Update pointer to src/monad submodule 2016-02-17 18:04:56 -08:00
Sergei Vorobev 54c11c1e2c Add missed files to Microsoft.PowerShell.Security
This files are needed for FullCLR build.
They are responsible for some errors reported in BVT/DRT regression.
2016-02-17 17:43:56 -08:00
Sergei Vorobev 9be4ba7364 Fix issue with missed ImplicitRemotingCommands.cs 2016-02-17 17:43:11 -08:00
Andy Schwartzmeyer 3453645cd7 Merge pull request #545 from PowerShell/cli-xunit
xUnit test runner integration
2016-02-17 17:34:10 -08:00
Andrew Schwartzmeyer 58ad5b66d9 Bump monad submodule with fix for Append<T>
Newest .NET Core implements this, so the reimplementation in PowerShell
was a conflicting type. It was removed.
2016-02-17 17:18:07 -08:00
Andrew Schwartzmeyer ae64f99c25 Bump .NET packages to 23817 2016-02-17 17:17:55 -08:00
Andrew Schwartzmeyer dae6e0ebd5 Use Linux.Host in xUnit tests
Make its internals visible to the `powershell-tests` assembly, and use its
`MyHost` and `Listener` classes instead of facades.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 473ac41630 Initialize the ALC for the runspace tests
This initialization was moved out of the native host and into the
managed host, so the same setup must now be done before tests.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 2ce694ebdd Add xUnit test runner script
Unfortunately a wrapper is needed because `LD_LIBRARY_PATH` must be set
to avoid having to place build artifacts (specifically
`libpsl-native.so`) out-of-tree to run tests.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer c68164f280 Remove Commands.Omi module
This was a temporary work-around that now needs to be removed (mostly
because the xUnit tests are out-of-date because we didn't have a runner,
and it's not worth it to fix them). Rather than let more cruft
accumulate, we need to remove it.

Resolves #551
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer eb43300842 Update CorePsTypeCatalog 2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 4d13ef1a29 Expose SMA internals to powershell-tests 2016-02-17 17:03:53 -08:00
Andrew Schwartzmeyer 9b9493241d Update xUnit dependencies for dotnet-test-xunit
Add `xunit` and `dotnet-test-xunit` packages. Import `portable-net45`
for `xunit`. Add `xunit` as `testRunner`.
2016-02-17 17:03:03 -08:00
Andrew Schwartzmeyer e19777103f Add cli-deps feed for dotnet-test-xunit
Although there is a dedicated `coreclr-xunit` feed for this package, it
is missing some needed dependencies. Rather than add yet another feed
(`aspnetvnext`), we'll use the `cli-deps` feed as it has all the
packages that `dotnet-test-xunit` needs, and is likely to stick around.
2016-02-17 16:20:17 -08:00
Andrew Schwartzmeyer 1436668fd1 Use CLI obtain script to install on AppVeyor 2016-02-17 14:20:15 -08:00
Andrew Schwartzmeyer 36bc1279a2 Pin dotnet-nightly package on Travis 2016-02-17 14:20:15 -08:00
George Fleming 70d42fc581 Move check of no match 2016-02-16 09:52:21 -08:00
George Fleming 7648857c97 Additional changes to correct tab-completion 2016-02-16 09:46:26 -08:00
George Fleming c74f68494a Fixes one of tab-completion problems 2016-02-12 15:23:46 -08:00
George Fleming 1ec5676f25 Fix "handle is invalid" error on AppVeyor 2016-02-12 11:15:57 -08:00
Andrew Schwartzmeyer cc64b31741 Remove versions from frameworkAssemblies
It is odd, but they're unsupported here. If a version is given, it
causes every build/publish to think it needs to be restored again,
because the lock file doesn't end up with a version.
2016-02-12 10:32:59 -08:00
Sergei Vorobev d3d82175b9 Fix Microsoft.PowerShell.Commands.Management project.json casing 2016-02-12 01:15:21 -08:00
Sergei Vorobev 6ec164bccf Add WebCmdlets to Microsoft.PowerShell.Commands.Utility 2016-02-11 21:36:05 -08:00
Sergei Vorobev 086bc3dea9 Update src\monad reference to include #if !CORECLR guards 2016-02-11 21:00:55 -08:00
Sergei Vorobev 3322d7af1c Add missed files to Microsoft.PowerShell.Commands.Management
Add almost all files to Microsoft.PowerShell.Commands.Management
One of them is Computer.cs that was listed in known issues.
We start to use a nuget packages generated for assemlbies that
cannot be listed in framework assemlbies, but exist in a GAC
on all windows machine and not a PowerShell assemblies
The first one is Microsoft.WSMan.Management
2016-02-11 20:44:21 -08:00
George Fleming 43d284f6b3 New pester test for Import-LocalizedData 2016-02-11 10:13:56 -08:00
George Fleming 4fe69773d4 Modified Get-ChildItem pester test to check for sorted list of files 2016-02-10 15:52:21 -08:00
Andrew Schwartzmeyer 0ef4e90f9a Add readme to Linux.Host 2016-02-10 15:29:06 -08:00
Sergei Vorobev 512c37431d Update appveyor.yml to import pester from the new location 2016-02-10 13:25:35 -08:00
Sergei Vorobev f3f0886e75 Make appveyor fail if it cannot find test results 2016-02-10 13:16:22 -08:00
Andrew Schwartzmeyer 5916b00261 Fix handling of bin directory 2016-02-10 13:05:46 -08:00
Andrew Schwartzmeyer dacaebefb8 Move Pester to submodule to Host/Modules
This way it can also be deployed automatically, removing the last manual
copy steps from our build scripts.

Travis and AppVeyor configurations updated for new submodule location.
2016-02-10 12:58:56 -08:00
Andrew Schwartzmeyer 79f5db71fe Add update-content.sh script 2016-02-10 12:52:36 -08:00
Andrew Schwartzmeyer 74a3855602 Add Modules to tree for content
Same as ps1xml files: already deployed in the wild, i.e. not source
code. Allows to remove recursive copies from build scripts and rely just
on CLI's behavior.
2016-02-10 12:48:46 -08:00
Andrew Schwartzmeyer 9f95aa3203 Use content to publish PSL_profile.ps1 2016-02-10 12:44:49 -08:00
Andrew Schwartzmeyer 9a2a8555e3 Copy ps1xml files into tree to use content
This allows us to remove the duplicated copying steps from our Windows
and Linux build scripts. These files are already distributed to users of
Windows, and so are not "source code."
2016-02-10 12:38:00 -08:00
Andrew Schwartzmeyer fcb2ce6d71 Remove registry stub
With latest changes to PowerShell source code, and better behaviors of
Get/Set-ExecutionPolicy, the Windows registry API stub can be removed.
2016-02-09 16:10:10 -08:00
Andrew Schwartzmeyer 5442346820 Update Get/Set-ExecutionPolicy tests
Test expected behaviors on both Windows and Linux.
2016-02-09 16:10:10 -08:00
Andrew Schwartzmeyer 4d9c7303b9 Bump monad with changes to ExecutionPolicy 2016-02-09 16:10:10 -08:00