Andrew Schwartzmeyer
1f19758614
Remove OMI and provider submodules
2016-04-12 12:10:54 -07:00
Andrew Schwartzmeyer
ea53a15642
Update download.sh to get v0.3.0 deb asset
2016-04-11 12:41:58 -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
Andrew Schwartzmeyer
71b55abf66
Bump .NET Core packages to build 24011
...
And update the CorePsTypeCatalog.
2016-04-11 10:37:15 -07:00
Andrew Schwartzmeyer
e0547c81ff
Update Linux installation documentation for v0.3.0
2016-04-11 09:50:58 -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
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
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
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
Andrew Schwartzmeyer
6f45601a27
Rename profile from PSL to Microsoft.PowerShellCore
...
Final fix for #713 .
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer
839014b599
Try Assembly.Load correctly
...
This should resolve #791 .
Instead of checking if `Assembly.Load` returned null (it doesn't), check
if it threw `FileNotFoundException`, which it will if it doesn't find
the assembly.
2016-04-08 19:09:38 -07:00
Andrew Schwartzmeyer
733cda385d
Fix accidental mapping change
...
Happened in programmatic update commit bfaad3f05 .
2016-04-08 18:09:09 -07:00
Andrew Schwartzmeyer
ac157568d6
Publish on AppVeyor
...
So that the artifacts for Core PowerShell have the .NET Core
dependencies.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
d7233fc4d0
Remove import of Platform module from AppVeyor
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
92a34cba5f
Add Publish switch to Start-PSBuild
...
Note that it is mutually exclusive with `FullCLR` as libraries are not
publishable; only applications can be published.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
f5a95a6ef5
Remove unsupported -Clean switch
...
Will put back when it is functional.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
73fe95feb8
Add tests for removal of aliases
2016-04-08 15:52:37 -07:00
Andrew Schwartzmeyer
b3521944ec
Fix Pester test
2016-04-08 15:23:38 -07:00
Andrew Schwartzmeyer
8c7174de10
Fix xUnit tests
2016-04-08 15:22:37 -07:00
Andrew Schwartzmeyer
13e0760e16
Fix build module for removal of Platform module
2016-04-08 15:13:50 -07:00
Andrew Schwartzmeyer
bcdad12c04
Fix tests for removal of Platform module
2016-04-08 15:13:01 -07:00
Andrew Schwartzmeyer
fffaf4cfe2
Remove Platform module
2016-04-08 15:11:33 -07:00
Andrew Schwartzmeyer
822244d261
Fix properties
...
Static but not const, go figure.
2016-04-08 15:08:16 -07:00
Andrew Schwartzmeyer
a082a02e6c
Add PowerShell variables corresponding to platform
...
This deprecates the Microsoft.PowerShell.Platform module and ensure that
IsLinux/OSX/Windows/Core variables are defined all throughout PowerShell.
2016-04-08 15:04:27 -07:00
Andrew Schwartzmeyer
49066d212a
Replace IsX method with IsCore property
2016-04-08 15:04:16 -07:00
Andrew Schwartzmeyer
f5410a18ce
Replace IsWindows method with property
...
And add *correct* IsLinux and IsOSX properties.
2016-04-08 14:54:41 -07:00
Andrew Schwartzmeyer
6f2110f38a
Replace use of IsLinux with IsWindows
...
So that IsLinux can stop being overloading for OS X.
2016-04-08 14:50:37 -07:00
Andrew Schwartzmeyer
5b3840f753
Deploy Platform module on all flavors
2016-04-08 13:38:08 -07:00
Andrew Schwartzmeyer
2bd274f5d7
Fix tests broken by removal of aliases
2016-04-08 13:36:54 -07:00
Andrew Schwartzmeyer
47a8ee5bcf
Remove A:...Z: drive functions on Linux / OS X
...
Resolves #612 .
2016-04-08 12:50:53 -07:00
Andrew Schwartzmeyer
7d9f439666
Remove conflicting aliases for Linux and OS X
...
The aliases which conflict with Linux native commands were consolidated
and removed with the pre-processor definition `LINUX`. Additionally,
several "conflicts" are purposefully kept and likewise consolidated.
They are kept because Bash itself stomps on the native commands with its
own built-ins, and so we're adopting the same behavior.
The `clear` and `more` aliases are edge cases where the functions they
call are already fixed for Linux, and so we keep these too.
Resolves #567 .
2016-04-08 12:50:47 -07:00
Andrew Schwartzmeyer
9288df09a1
Rename CoreConsoleHost host.cs Name
...
Fully resolve #713 .
2016-04-08 11:00:52 -07:00
Andrew Schwartzmeyer
bfaad3f057
Programmatic update of core console host rename
2016-04-08 10:59:41 -07:00
Andrew Schwartzmeyer
5abda1c223
Rename Host to CoreConsoleHost
...
To resolve part of #713 .
2016-04-08 10:57:57 -07:00
Andrew Schwartzmeyer
bc7030dae0
Deprecate build.sh script
...
If `powershell` is installed, run `Start-PSBuild` to ensure DWIM. Else,
direct user to Linux / OS X build documentation.
Resolves #767 .
2016-04-07 14:19:35 -07:00
Andrew Schwartzmeyer
e97ccc1c5f
Refer to contributing guidelines in building documentation
...
For #771 .
2016-04-07 13:56:20 -07:00
Andrew Schwartzmeyer
d7f60447ec
Quick markdown cleanups
2016-04-07 13:56:20 -07:00
Andrew Schwartzmeyer
4960e6e39c
Refactor submodule documentation
...
Moved notes on submodules out of contributing guidelines and into
`docs/git/submodules.md` as most developers will touch them infrequently
now.
2016-04-07 13:56:20 -07:00
Andrew Schwartzmeyer
fe0ad12598
Update test documentation
2016-04-04 19:20:26 -07:00
Andrew Schwartzmeyer
51fcd5cdb4
Update Windows Full building documentation
2016-04-04 19:18:15 -07:00
Andrew Schwartzmeyer
9bad78a435
Update Windows Core building documentation
2016-04-04 19:08:03 -07:00
Andrew Schwartzmeyer
3ad6afbec4
Update OS X building documentation
2016-04-04 19:08:03 -07:00
Andrew Schwartzmeyer
11d07d7f42
Update Linux building documentation
2016-04-04 19:08:03 -07:00
Andrew Schwartzmeyer
a6fd5c70d9
Fix FullCLR build script for build instead of publish
2016-04-01 23:10:34 -07:00
Andrew Schwartzmeyer
4a7a521077
Fix powershell-native output directory
...
Thanks Stack Overflow https://stackoverflow.com/a/7750816
2016-04-01 23:10:33 -07:00
Andrew Schwartzmeyer
1b3bd12230
Don't load Netwonsoft.Json from path
...
It's already loaded.
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
d27ae18ca0
Skip Add-Type.Tests.ps1
...
This broke and needs to be fixed.
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
b9d8e890c5
Remove deprecated pester.sh script
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
aa21bfc635
Use Start-PSPester on Travis
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
a3cd2b3453
Add Start-PSPester function to replace pester.sh
...
Super basic function that should be rewritten.
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
b19fdb24ac
Throw in Get-PSOutput
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
68879655a5
Formatting and function extractions
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
f3f0bc0b11
Fix Pester path for Travis
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
c66375e82d
Fix paths for AppVeyor
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
a158bf654d
Disable Travis cache
2016-04-01 20:49:23 -07:00
Andrew Schwartzmeyer
4601340f54
Use Start-PSxUnit on Travis
2016-04-01 20:49:03 -07:00
Andrew Schwartzmeyer
3895492da1
Remove deprecated update-content.sh
2016-04-01 20:47:58 -07:00
Andrew Schwartzmeyer
b8cec0a00e
Remove deprecated xunit.sh script
2016-04-01 20:46:24 -07:00
Andrew Schwartzmeyer
8e397ec1a1
Add Start-PSxUnit function
...
Replaces `./xunit.sh` to run xUnit tests on Linux. Pretty basic, can
definitely be extended to support other flavors.
2016-04-01 20:45:32 -07:00
Andrew Schwartzmeyer
067609cdce
Add runtimes back to xUnit runner
...
Per dotnet/cli#2201
2016-04-01 20:25:12 -07:00
Andrew Schwartzmeyer
151b5525c6
Merge src/Modules and host specific Modules
2016-04-01 19:40:18 -07:00
Andrew Schwartzmeyer
6d691de665
Log location of PowerShell build output
2016-04-01 19:15:52 -07:00
Andrew Schwartzmeyer
5a1666c984
Fix programatic references to Linux.Host
2016-04-01 19:15:41 -07:00
Andrew Schwartzmeyer
5c1fb845c4
Rename Linux.Host to Host
2016-04-01 18:56:26 -07:00
Andrew Schwartzmeyer
61825110d0
Add Modules to mapping.json
2016-04-01 18:56:26 -07:00
Andrew Schwartzmeyer
a9f1603a97
Rename dotnet restore arguments variable
2016-04-01 18:15:43 -07:00
Andrew Schwartzmeyer
ff73a5cd98
Move Pester to src/Modules
2016-04-01 18:09:30 -07:00
Andrew Schwartzmeyer
9571b220b2
Initialize googletest submodule on Travis
2016-04-01 18:04:25 -07:00
Andrew Schwartzmeyer
774dcb7996
Migrate libpsl-native googletest submodule
2016-04-01 18:02:20 -07:00
Andrew Schwartzmeyer
0102a55da5
Add 'src/libpsl-native/' from commit '4bb241ad11c54985617343fbeb8700cfdcdf7ae0'
...
git-subtree-dir: src/libpsl-native
git-subtree-mainline: 2264613ae3
git-subtree-split: 4bb241ad11
2016-04-01 17:59:08 -07:00
Andrew Schwartzmeyer
2264613ae3
Remove libpsl-native submodule
2016-04-01 17:57:58 -07:00
Andrew Schwartzmeyer
2b46e0d5eb
Add $script:Output to store location of executable
2016-04-01 17:56:07 -07:00
Andrew Schwartzmeyer
fde63f4bc0
Add win81-x64 runtime
...
It's what AppVeyor uses.
2016-04-01 17:52:00 -07:00
Andrew Schwartzmeyer
540acd59d1
Install latest .NET CLI packages on Travis
2016-04-01 17:52:00 -07:00
Andrew Schwartzmeyer
2ddf3e9ff0
Bump .NET CLI version on AppVeyor
2016-04-01 16:52:14 -07:00
Andrew Schwartzmeyer
1293c63289
Deploy powershell.exe as content for ConsoleHost
...
CMake will now output the artifacts of the native build into the
ConsoleHost project, where .NET CLI picks it up as content and deploys
it automatically.
2016-04-01 16:48:16 -07:00
Andrew Schwartzmeyer
bf470de5ca
Obtain runtime from dotnet --info
...
This is a breaking change that requires developers to update their
version of .NET CLI. In order to stop specifying where dotnet should
output the artifacts, we need to be able to guess their location
correctly, which requires knowing the current RID (and framework).
2016-04-01 14:48:41 -07:00
Andrew Schwartzmeyer
6cf8e39d1a
Refactor native build steps
...
Move dependency checks to precheck section and make conditional more
sensible.
2016-04-01 14:48:41 -07:00
Andrew Schwartzmeyer
aa5c30d42e
Whitespace and style cleanups
2016-04-01 14:48:41 -07:00
Andrew Schwartzmeyer
34f6b44d99
Remove --runtime argument to dotnet restore
2016-04-01 14:48:41 -07:00
Andrew Schwartzmeyer
5c1e295e9a
Remove -Output switch from PowerShellGitHubDev
...
This is a breaking that stops publishing PowerShell by default, and
instead relies on `dotnet build`. Thus the artifacts will be output to a
new (RID, framework, and project dependent) location.
Publishing will still be needed to produce packages, but this logic will
be moved into `Start-PSPackage`.
2016-04-01 14:47:30 -07:00
Andrew Schwartzmeyer
b9232256fb
Remove duplicate #if CORECLR from SMA/CoreCLR
2016-04-01 13:16:35 -07:00
Andrew Schwartzmeyer
6ad880722c
Add PAL_DBG_CHANNELS note
2016-04-01 13:16:35 -07:00
Andrew Schwartzmeyer
c128bbfe62
Add COREHOST_TRACE debugging note
2016-04-01 13:16:35 -07:00
Andrew Schwartzmeyer
646d234d1f
Revert "Remove runtimes sections from projects"
...
This reverts commit 47fd1a45bc .
Per dotnet/cli#2029 , RID inference is no longer supported by NuGet, and
so the runtimes section needs to exist again.
2016-04-01 13:01:15 -07:00
Andrew Schwartzmeyer
b88980590c
Put version back to make VS Code happy
2016-04-01 10:26:50 -07:00
Andrew Schwartzmeyer
39f92b436d
Bump windows-build
...
This commit was forgotten.
2016-03-31 13:31:21 -07:00
Andrew Schwartzmeyer
f49e2b259c
Update CorePsTypeCatalog.cs
2016-03-31 13:22:04 -07:00
Andrew Schwartzmeyer
d7b104110e
Bump .NET Core packages to 23931-00
2016-03-31 12:33:44 -07:00
Andrew Schwartzmeyer
b79af07fbb
Add Linux and Windows installation instructions
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
4b58168a87
Fix up Git docs
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
f03c5f4c0b
Ignore all libraries in host
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
666d036fd8
Move debugging docs
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
b8435da8db
Fix up .vscode files
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
f1d27d518c
Move PSRP notes
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
6f8daacf31
Add test/README.md
2016-03-30 23:30:26 -07:00