Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 7d1ce65079 Mark tests as pending on Travis's OS X and on Windows
Because redirected `stdin` does not yet work on Windows, and because any
output based test does not yet work on OS X on Travis (where this is no
TTY), we cannot yet run these tests on those platforms.
2016-06-15 12:36:17 -07:00
Andrew Schwartzmeyer 4b3b48adec Remove resgen artifacts
This has been deprecated by building these files on the fly using a
template in PowerShell, instead of using the resgen Windows-only binary.
2016-06-15 11:20:19 -07:00
Andrew Schwartzmeyer d16cfbd04f Work-around dotnet bug
The include must be duplicated because the root `buildOptions` is not
being applied "whenever compiling the project."
2016-06-14 16:21:36 -07:00
Andrew Schwartzmeyer 01f1c5348d Exclude FullCLR files from CoreCLR build 2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer 047525aa9d Revert unnecessary changes 2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer 69ce0e7107 Revert CORECLR guard from FullCLR files
This reverts the `if !CORECLR ... #endif` guard surrounding FullCLR
files by applying the original diff from the `source-depot` branch, thus
the accidentally overwritten BOMs were restored as well.
2016-06-14 16:06:48 -07:00
Andrew Schwartzmeyer a184876b0a Pin .NET CLI to LKG version 1.0.0-preview2-003067
Also teach `Start-PSBootstrap` the parameters `Channel` and `Version` to
pass to .NET CLI's obtain scripts.
2016-06-14 13:33:19 -07:00
Andrew Schwartzmeyer c9c20988c3 Update building documentations for Linux and OS X 2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer 896129652c Force link openssl on OS X 2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer 11d2c2c6e7 Update Start-PSBootstrap to use .NET CLI's scripts
Linux and OS X no longer install packages, instead they download the
1.0.0 uninstall and install scripts provided by .NET CLI, uninstall all
existing `dotnet` packages, and "install" the latest 1.0.0 preview2
version of `dotnet` to `~/.dotnet`, which `Start-PSBuild` automatically
picks up.

Additionally, `Start-PSBootstrap` only attempts to install dependencies
when it detects that it is on Ubuntu 14.04, otherwise it warns that
dependencies must be installed manually, and still installs `dotnet` via
their obtain script. This makes `Start-PSBootstrap` safe to run on
Debian, and usable on CentOS.
2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer 2639f2a8ae Use include key in copyToOutput and publishOptions
While the schema says that a `string[]` will be picked up as if `{
"include" : [ ... ] }` was used, it does not. This is a .NET CLI bug.
2016-06-10 13:00:33 -07:00
Andrew Schwartzmeyer 9b2be207f7 Don't attempt to publish any profiles
PowerShell does not ship with any default profiles.
2016-06-10 12:44:18 -07:00
Andrew Schwartzmeyer 44f3fb1211 Update content to copyToOutput and publishOptions
These must be duplicated as we require the same files for both `build`
and `publish`. This is the requirement of the new schema, as `content`
was split.

Note that while each key can take an object, if given just a `string[]`
as we do here, it defaults to `include`.

See the new schema: https://github.com/aspnet/Announcements/issues/175
2016-06-10 12:41:26 -07:00
Andrew Schwartzmeyer 1a1de1d4a0 Remove unnecessary LINUX configuration from Commands.Utility 2016-06-10 11:52:35 -07:00
Andrew Schwartzmeyer e61d698bbc Remove NOETW in favor of LINUX
ETW is available on Windows, so this is only (and will always be)
necessary for Linux.
2016-06-10 11:49:40 -07:00
Andrew Schwartzmeyer 80aceb7a8a Move compile data to build options 2016-06-10 11:15:37 -07:00
Andrew Schwartzmeyer e3056303aa Rename compilationOptions to buildOptions in project.json files
This resolves #928. This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Andrew Schwartzmeyer 560bcaf736 Refactor base directory tests 2016-06-09 14:16:33 -07:00
Andy Schwartzmeyer a48c5281a5 Fix Windows consistency tests
Use `USERPROFILE`, not `HOME`. The latter doesn't exist on Windows, and
`HOMEPATH` strips the drive. The former provides `C:\Users\<username>`.

Fix location tested for JIT cache location on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 539f8696e5 XDG cache directory now guaranteed to exist 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer d5f6295042 Update ModuleAnalysisCache to use XDGBDS on Linux 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 4b0c916646 Skip tests which can't be run on Travis OS X
These should be marked as `-Pending` but Pester doesn't accept both
`-Skip` and `-Pending` parameters, so they had to be combined to support
skipping on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 0e10a51802 Whitespace and formatting cleanups 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 140d452ba2 Fix PSReadLine history path on Windows
Bug introduced in initial port of PSReadLine. `Path.Combine` sees the
initial backslash as an absolute path, thus discarding `AppData`.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 41c7f9e469 Update XDG BDS tests to specifications
This renames the tests and updates for better requirement
specifications. The profile, modules, history, and startup cache data
are tested for not breaking Windows behavior, new Linux behavior, and
respecting set variables on launch. This also corrects some erroneous
assumptions I had previously made.

The ModuleAnalysisCache cannot be tested, and the startup cache data
might not be testable on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer fd649c0f77 Revert "Merge pull request #1046 from PowerShell/GetMemberCommandTest"
This reverts commit 7392c68bcb, reversing
changes made to 1ee6e4ef2d.
2016-06-08 13:24:33 -07:00
Andrew Schwartzmeyer 1f36de3e03 Revert "Merge pull request #1047 from PowerShell/CompareObjectPesterTest"
This reverts commit 1ee6e4ef2d, reversing
changes made to 5a0155dc9d.
2016-06-08 13:23:21 -07:00
Andrew Schwartzmeyer 338b9a3462 Add LLDB with SOS via tools/debug.sh note to debugging docs 2016-06-06 12:20:28 -07:00
Andrew Schwartzmeyer 112945657c Update debug.sh script for new layout 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer 90be3585e1 Move debug.sh 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer 0b0b141ea5 Move download.sh script to tools tree 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer 751f8a0635 Add debugging info on use of Trace-Command 2016-06-06 11:54:13 -07:00
Andrew Schwartzmeyer e2d1089a08 Test import of cmdlet-example module on FullCLR PowerShell 2016-06-06 11:39:29 -07:00
Andrew Schwartzmeyer 1d96695a63 Update cmdlet-example to use netstandard1.3
As this enables importing the same DLL everywhere.
2016-06-06 11:39:29 -07:00
Andrew Schwartzmeyer 195ed6e790 Ask for $PSVersionTable in issue template 2016-06-03 17:10:34 -07:00
Andrew Schwartzmeyer c6960f0867 Add tests for command name matching 2016-06-03 14:18:00 -07:00
Andrew Schwartzmeyer 5c4675c63f Allow scripts to be called without .ps1 extension
For instance, `script.ps1` can be called with just `script`.
2016-06-03 14:17:47 -07:00
Andrew Schwartzmeyer 70be543038 Add Get-TraceSource test 2016-06-03 13:53:20 -07:00
Andrew Schwartzmeyer dbae9e5c13 Import Trace-Command tests from source depot 2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer facef0ce6b Enable tracing commands in module 2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer f1741c04f5 Use Dispose() instead of Close() for CORECLR 2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer 52621adba8 Use Security.Permissions stub 2016-06-03 12:07:48 -07:00
Andrew Schwartzmeyer e007412628 Build utility/trace sources for Core PowerShell 2016-06-03 10:27:50 -07:00
Andrew Schwartzmeyer 2b91e1ba90 Add TextWriterTraceListener to Commands.Utility 2016-06-03 10:27:50 -07:00
Andrew Schwartzmeyer 66ddfcdaff Make git describe work relative to script
So that you don't have to watch your CWD when running commands from the
build module.
2016-06-01 11:15:09 -07:00
Andrew Schwartzmeyer aa273571db Fix and improve Start-PSxUnit
* Last PR had a typo in "TestAruments" which caused the configuration
  not to get picked up
* Now bails appropriately if PowerShell wasn't built, instead of
  rebuilding it every time
* Passes `-verbose` to the xUnit runner, not dotnet, so we can see which
  test failed
2016-06-01 11:15:09 -07:00
Andrew Schwartzmeyer 4d5e7daf28 Fix Start-PSxUnit 2016-05-31 16:06:19 -07:00
Andrew Schwartzmeyer 7736f0d9e0 Bump windows-build 2016-05-31 14:14:53 -07:00
Andrew Schwartzmeyer b77b34164e Update releasing notes for WiX 2016-05-27 16:33:49 -07:00
Andrew Schwartzmeyer e76a61e137 Update TypeCatalogParser for CoreConsoleHost removal 2016-05-27 16:22:38 -07:00
Andrew Schwartzmeyer 2dcdc13dff Remove references to CoreConsoleHost from docs
The `src/powershell` project is the new host.
2016-05-27 16:20:52 -07:00
Andrew Schwartzmeyer 0d172cb562 Revert CoreConsoleHost changes made to SMA 2016-05-27 16:16:34 -07:00
Andrew Schwartzmeyer 20f103b0d4 Revert EndProcessing to original code
This appears to have been changed in a bad merge. Now these changes are
exactly as in source-depot at [SD:706766].
2016-05-27 11:52:31 -07:00
Andrew Schwartzmeyer 05fc323762 Fix Remove-TypeData runspace isolation
Responding to PR review.
2016-05-26 10:36:22 -07:00
Andrew Schwartzmeyer d811fe37ea Port ConsoleHost break handler to System.Console 2016-05-25 15:31:25 -07:00
Andy Schwartzmeyer a6c04a5bd3 Redirect WIX native output to Write-Verbose 2016-05-24 15:02:24 -07:00
Andy Schwartzmeyer b1436e991e Remove MMI from Publish-NuGetFeed
This project was removed and provided as a package in the windows-build
submodule. The artifact uploading to AppVeyor fails because this was not
updated.
2016-05-24 14:57:05 -07:00
Andy Schwartzmeyer 44d92a297a Create MSI packages on AppVeyor 2016-05-24 14:49:03 -07:00
Andy Schwartzmeyer 0afc56d5d4 Ignore executables 2016-05-24 14:46:41 -07:00
Andy Schwartzmeyer c5a81c2e6e Guard Remove-Item in Create-MSIPackage 2016-05-24 14:46:40 -07:00
Andy Schwartzmeyer 691618d335 Return path to built package in Start-PSBuild
For Windows only right now.
2016-05-24 14:46:40 -07:00
Andy Schwartzmeyer b4ed5e2534 Call Create-MSIPackage from Start-PSBuild 2016-05-24 14:46:39 -07:00
Andrew Schwartzmeyer 704aaa8057 Add FAQ about Travis CI failures from forks 2016-05-24 12:04:32 -07:00
Andrew Schwartzmeyer f13f5afd23 Isolate Remove-TypeData tests with runspace 2016-05-24 11:51:58 -07:00
Andrew Schwartzmeyer 1365c2b336 Bump windows-build with MMI package 2016-05-23 10:54:08 -07:00
Andrew Schwartzmeyer b1c1cd70e1 Remove MMI project 2016-05-23 10:48:31 -07:00
Andrew Schwartzmeyer d54b0fa4ce Remove MMI files from mapping.json 2016-05-23 10:39:44 -07:00
Andrew Schwartzmeyer 154166f458 Add FAQ about windows-build/nuget-feed being empty
And then causing `dotnet restore` to fail.
2016-05-20 16:33:19 -07:00
Andrew Schwartzmeyer 4f8e30c10e Update xUnit tests to depend on powershell project 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer 29ec5f27b9 Run xUnit tests verbosely 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer dcaf231bde Update dotnet-test-xunit package 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer 5349900c3b Use get-command instead of get-process in xUnit 2016-05-20 15:17:12 -07:00
Andrew Schwartzmeyer 675c6df19d Add SecureString known issue 2016-05-19 15:23:00 -07:00
Andrew Schwartzmeyer 6c38dc4fb3 Bump Eventing's SecureString version dependency 2016-05-19 15:18:48 -07:00
Andrew Schwartzmeyer 5b61acd28d Bump System.Security.SecureString version to 4.0.0 2016-05-19 15:18:32 -07:00
Andrew Schwartzmeyer 8b6bcabdaf Skip slow tests in Start-PSPester
This will skip them for Linux and OS X (which are currently slower than
AppVeyor).
2016-05-19 14:30:55 -07:00
Andrew Schwartzmeyer 0702407f65 Mark SendGreeting module tests as slow 2016-05-19 14:28:50 -07:00
Andrew Schwartzmeyer 1e24e76200 Mark ConsoleHost tests as slow 2016-05-19 14:28:43 -07:00
Andrew Schwartzmeyer a423ca5d99 Add jobs known issue 2016-05-19 14:18:24 -07:00
Andrew Schwartzmeyer ccb451ce19 Refactor to get latest asset ID using API 2016-05-19 13:36:26 -07:00
Andrew Schwartzmeyer ee582d42d5 Add regression test for CallDepthOverflow 2016-05-19 10:48:02 -07:00
Andrew Schwartzmeyer 3d18f454f6 Temporarily disable xUnit tests 2016-05-18 20:03:57 -07:00
Andrew Schwartzmeyer feded5d979 Import build.psm1 on Travis
`ag` ignored the `.travis.yml` when this change was made.
2016-05-18 19:48:28 -07:00
Andy Schwartzmeyer 5bdb215034 Don't compile GetComputerInfoCommand.cs 2016-05-18 17:47:25 -07:00
Andrew Schwartzmeyer 056effc129 Remove system profile 2016-05-18 17:26:10 -07:00
Andy Schwartzmeyer 04c4f5c97b Update mapping.json for SD:704605 2016-05-18 17:21:42 -07:00
Andy Schwartzmeyer 4f9c7d92ca Update mapping.json for OneGet files
This purposefully does not include test files, which is out of my scope.
2016-05-18 15:31:48 -07:00
Andy Schwartzmeyer c5560957f4 Ignore Packages and src/monad
The former is the NuGet package location on Windows, and the latter is
used for copying from the old submodule.
2016-05-18 15:10:41 -07:00
Andrew Schwartzmeyer 811f052ae9 Improve error message of Start-NativeExecution 2016-05-18 14:53:21 -07:00
Andrew Schwartzmeyer 730c8f04fe Use -noprofile in build.sh 2016-05-18 14:25:17 -07:00
Andrew Schwartzmeyer fcf4b38370 Rename PowerShellGitHubDev.psm1 to build.psm1 2016-05-18 13:58:59 -07:00
Andrew Schwartzmeyer 60f6e05017 Add non-interactive console known issue 2016-05-18 10:50:00 -07:00
Andrew Schwartzmeyer e2f4b16c2f Add team coordination link to internal docs 2016-05-18 10:47:13 -07:00
Andrew Schwartzmeyer e140e215bb Add aliases known issue 2016-05-18 10:43:16 -07:00
Andrew Schwartzmeyer 1381140f6e Add sessions known issue 2016-05-18 10:36:52 -07:00
Andrew Schwartzmeyer f75b39e5cd PSRP known issues removed
Since it was decoupled from this repo.
2016-05-18 10:21:28 -07:00
Andrew Schwartzmeyer ac55b037ae Eventing known issue is fixed 2016-05-18 10:16:08 -07:00
Andrew Schwartzmeyer d1f6adb0a3 MMIN known issue is fixed 2016-05-18 10:14:17 -07:00
Andrew Schwartzmeyer 1aa6a4904b Update Linux installation documentation 2016-05-18 10:10:25 -07:00
Andrew Schwartzmeyer 7675de8d74 Link Pester readme to Pester Do and Don't 2016-05-18 10:08:05 -07:00