Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer b820817c84 Fix AssemblyLoadContext fixture
Resolves #676.
2016-03-17 17:36:06 -07:00
Andrew Schwartzmeyer 6ec3dc308e Build Linux configuration for xUnit tests 2016-03-17 17:18:01 -07:00
Andrew Schwartzmeyer 41260dd9c8 Run xUnit tests on Travis 2016-03-17 17:13:16 -07:00
Andrew Schwartzmeyer 79a9294379 Enable exit code from xUnit runner 2016-03-17 17:12:54 -07:00
Andrew Schwartzmeyer 1457082fd0 Fix powershell -c 'throw error'
When executing a single command block, two bugs existed.

1) Exceptions were not reported, instead it core dumped
2) The error code was not set, instead 0 was returned

Fixing 1) required calling `Execute` instead of `ExecuteHelper` as the
latter handles exception through `ReportException`.

Fixing 2) required setting the listener's error code when an exception
was thrown, and resetting it for each command when an interactive
session is running.
2016-03-17 13:32:10 -07:00
Andrew Schwartzmeyer b89a908e57 Build on Travis using PowerShell build module 2016-03-17 12:47:43 -07:00
Andrew Schwartzmeyer 412709c619 Bump Travis CI version to 1675
The latest in the feed, per the readme.
2016-03-17 12:47:43 -07:00
Andrew Schwartzmeyer 934304c17d Add download script to obtain PowerShell release
This requires that $GITHUB_TOKEN be set. Travis sets this as a secure
environment variable; a user can provider their own.
2016-03-17 12:47:43 -07:00
Andrew Schwartzmeyer 38a53d68b4 Improve readme 2016-03-16 23:49:26 -07:00
Andrew Schwartzmeyer 6e98692827 Revert "Update README.md"
This reverts commit 0908997a8e.

Fixes #675
2016-03-15 21:14:58 -07:00
Andrew Schwartzmeyer 3eeda101c3 Bump NETStandard.Library to 1.5.0-rc2-23911
The rc3-23914 version does not restore `System.Private.Uri` correctly,
but this version does. Bug reported to dotnet/corefx#6883.
2016-03-14 17:03:58 -07:00
Andrew Schwartzmeyer 9bd361abe1 Bump .NET package builds to 23914 2016-03-14 16:55:25 -07:00
Andrew Schwartzmeyer 447b3ef729 Update xUnit runner to netstandardapp1.5
This was enabled in dotnet/coreclr.xunit#12
2016-03-14 16:51:49 -07:00
Andrew Schwartzmeyer 830c6b50d2 Fix runtime facade package versions
These packages had their semantic versions get updated, but the
corresponding packages in the facade were forgotten.
2016-03-14 16:51:05 -07:00
Andrew Schwartzmeyer 5901e70dd0 Revert work-around in Json.Tests.ps1
This resolves #627.
2016-03-14 13:39:32 -07:00
Andrew Schwartzmeyer c87d99bba0 Bump omi-provider with AppContext.BaseDirectory fix 2016-03-14 13:38:25 -07:00
Andrew Schwartzmeyer 2beb92ce43 Add note on writing good commit messages 2016-03-14 12:29:07 -07:00
Andrew Schwartzmeyer 342a7530c7 Update FullCLR detailed build instructions
This was left out of date as of #655. It is also needed to be a
subsection of the detailed build notes section.

Some typos and superfluous information were fixed.
2016-03-14 12:29:07 -07:00
Andrew Schwartzmeyer a2974fa7fe Move Git installation instructions to contributing
The readme is getting quite large, so in an effort to shorten it, the
Git installation instructions (which have nothing to do with PowerShell,
but are helpful for new users), are now in `CONTRIBUTING.md`. Thus, if
someone is totally new to Git, they will be far more likely to review
our contributing guidelines, and so read our rules and best practices.

Cloning the source code was cleaned up so that initializing the
submodules is done in a separate step. This simplifies the first step,
making it more likely to succeed (and narrowing the possible failures).
2016-03-14 12:29:07 -07:00
Andrew Schwartzmeyer 724f9c4d4e Remove PsModulePath step from Windows instructions
This gets automatically set correctly thanks to #646.
2016-03-14 11:21:16 -07:00
Andrew Schwartzmeyer f3f4fa281d Fix PSRP build notes
These got split up. Moved them all to detailed build notes section.
2016-03-14 11:20:46 -07:00
Andrew Schwartzmeyer 9d709e8eaa Update note on PowerShellGitHubDev module 2016-03-14 11:19:56 -07:00
Andrew Schwartzmeyer dd25c4c50b Remove DSC build notes
This should have been removed with the DSC submodule.
2016-03-14 11:19:22 -07:00
Andrew Schwartzmeyer 5515c23854 Move repo permissions note to contributing docs
And remove the skip CI note, as it is already noted in CONTRIBUTING.md.
2016-03-14 11:18:44 -07:00
Andrew Schwartzmeyer 44a991c24d Upgrade CLI to build 1718
Per dotnet/cli#1783, this should resolve PowerShell/PowerShell#638.

Unfortunately, per dotnet/cli#1839, the Ubuntu package feed is
out-of-date. So now Travis and AppVeyor aren't quite in sync. This is
not great, but the Ubuntu version of CLI does not have the same
regression that the Windows version had.

The readme has been updated to note how to install an actually
up-to-date copy on Linux.
2016-03-14 10:49:31 -07:00
Andrew Schwartzmeyer ed1536ed7f Bump monad with quick bugfix 2016-03-09 15:10:59 -08:00
Andrew Schwartzmeyer 7148cfc427 Print dotnet --version on AppVeyor 2016-03-09 14:26:19 -08:00
Andrew Schwartzmeyer 7f60921094 Target net451 instead of dnx451 for FulLCLR 2016-03-09 14:25:35 -08:00
Andrew Schwartzmeyer 6624814a69 Bump monad submodule with PsModulePath fix 2016-03-09 13:46:37 -08:00
Andrew Schwartzmeyer 887ac21256 Remove accidentally committed temporary file
This file was used to convert the test from UTF-8 with BOM to ASCII, and
got caught in a `git commit -a`.
2016-03-08 19:15:22 -08:00
Andrew Schwartzmeyer 2c649d51f1 Update readme and known issues
[ci skip]
2016-03-08 10:12:28 -08:00
Andrew Schwartzmeyer 05ef797849 Add -Clean switch to Start-PSBuild
And use full names of cmdlets.
2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer 4e76a6261f Validate -Runtime 2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer e349704fa1 Add Start-PSPackage -Type switch to build any output
If not specified, "deb" is used as default on Linux. This should be
updated to check the distribution and required package build
dependencies.

Dependency names switched per package type, since specific package names
are different. Should check if this causes an issue on OS X when the
names are empty.
2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer 9c41d1eff7 Bump monad and windows-build submodules with SD updates 2016-03-07 16:35:22 -08:00
Andrew Schwartzmeyer e1c0f68098 Add switch to Start-PSBuild any specific -Runtime
Much better argument passing to CLI. Thanks @vors.
2016-03-07 16:08:50 -08:00
Andrew Schwartzmeyer 5671a1113d Add CentOS 7.1 runtime 2016-03-07 15:31:08 -08:00
Andrew Schwartzmeyer 57181103cf Bump .NET CLI to build 1638 2016-03-07 14:17:31 -08:00
Andrew Schwartzmeyer 24eaf8bad8 Add newly required packages
These packages are new requirements as of the 23907 build due to
refactoring of the .NET libraries.
2016-03-07 14:17:31 -08:00
Andrew Schwartzmeyer faec94ffcf Add Microsoft.NETCore.Unsupported.Platform.API package
This package contains the Windows runtime assemblies of packages that
are not actually supported on Linux. The assemblies exist in the Linux
runtime folder. While the code cannot be executed, this allows
PowerShell to use the Windows specific types in its function calls
without crashing (and allows compiling with these types in the first
place). This is *not* an ideal work-around, but we are waiting on a
better package from .NET that contains Linux runtime assemblies that
throw `PlatformNotSupported` exceptions on use.
2016-03-07 14:17:31 -08:00
Andrew Schwartzmeyer 93f8a3360f Bump versions of upgraded packages
These packages had their minor and patch versions updated in addition to
the updated build number.
2016-03-07 13:59:11 -08:00
Andrew Schwartzmeyer e12f5a427e Bump .NET packages to 23907 2016-03-07 13:59:11 -08:00
Andrew Schwartzmeyer 876a3164b8 Bump libpsl-native with OS X fixes 2016-03-04 20:02:46 -08:00
Andrew Schwartzmeyer 0df9b76322 Fix Start-Process tests
OS X's ping command requires the flags to be specified before the
arguments. I also reduced the ping count so that the tests execute a bit
faster. This resolves #556.
2016-03-04 17:35:13 -08:00
Andrew Schwartzmeyer 6382bfb069 Enable Add-Type test on Windows
Resolves #606.
2016-03-04 15:55:55 -08:00
Andrew Schwartzmeyer a93e77d6c9 Import Platform module in pester.sh for Travis 2016-03-04 15:46:54 -08:00
Andrew Schwartzmeyer 2fbc07fa72 Import Platform module on AppVeyor 2016-03-04 15:44:39 -08:00
Andrew Schwartzmeyer 0c6b14adab Programmatic indentation and whitespace-cleanup of tests 2016-03-04 14:52:27 -08:00
Andrew Schwartzmeyer 0aaf74bdcc Convert Pester tests to ASCII
Instead of UTF-8 with BOM.

Resolves #417.
2016-03-04 14:48:30 -08:00
Andrew Schwartzmeyer 901160cb78 Fix Get-Location tests
These should never have passed.
2016-03-04 14:42:36 -08:00
Andrew Schwartzmeyer 15f8433d98 Use $PSScriptRoot instead of assigning $here 2016-03-04 14:42:08 -08:00
Andrew Schwartzmeyer c37a0c4a64 Increase New-TimeSpan difference to reduce errant failures 2016-03-04 14:41:33 -08:00
Andrew Schwartzmeyer 579287c53d Fix ExecutionPolicy tests to -Skip instead of return 2016-03-04 14:40:51 -08:00
Andrew Schwartzmeyer 4feb665203 Update PSVersionTable tests for PSEdition 2016-03-04 14:40:33 -08:00
Andrew Schwartzmeyer 615eca6fd5 Use -Skip:$IsWindows
Uses the $IsWindows etc. booleans from the Microsoft.PowerShell.Platform
module instead of sourcing Test-Common repeatedly.
2016-03-04 14:39:18 -08:00
Andrew Schwartzmeyer de6a452f63 Pester test formatting cleanups 2016-03-04 14:38:01 -08:00
Andrew Schwartzmeyer 7673c4e90f Add Microsoft.PowerShell.Platform module
- Exports the IsCore, IsLinux, IsOSX, and IsWindows variables
- Imported by the default PSL profile
- Can be used automatically in Pester tests and Open PowerShell sessions
- Should maybe become a default module once it is polished
- PowerShellGitHubDev module does not explicitly use it because on
  FullCLR PowerShell (normal Windows development) it will not be
  imported automatically
2016-03-04 12:11:01 -08:00
Andrew Schwartzmeyer c94ad6c97c Bump OMI and provider submodules
Emergency fix for recursive cloning.

The OMI branch had been rebased upstream and not simultaneously fixed
here.
2016-03-04 10:50:54 -08:00
Andrew Schwartzmeyer 7857f13165 Skip SymbolicLink tests on Windows
On Windows, making symbolic links requires administrator access, so
let's skip it.
2016-03-03 18:09:52 -08:00
Andrew Schwartzmeyer 19d5b2b53a Bump monad and windows-build with Source Depot changes
Resolves #610.
2016-03-03 18:09:52 -08:00
Andrew Schwartzmeyer da9c58828e Workaround dotnet/corefx#6603 2016-03-03 17:02:07 -08:00
Andrew Schwartzmeyer aca021aaad Don't cache NuGet packages on AppVeyor
Because the resulting archive is too big, so AppVeyor wastes time making
it and testing it, and then refuses to upload it.
2016-03-03 13:57:31 -08:00
Andrew Schwartzmeyer d253a4e483 Make Add-Type test -Pending until it passes on Windows 2016-03-03 13:46:35 -08:00
Andrew Schwartzmeyer 96be23da1e Add simple regression test for Add-Type 2016-03-01 14:28:17 -08:00
Andrew Schwartzmeyer fd9140f9f8 Update CorePsTypeCatalog 2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 3abbf62428 Fix TypeCatalogGen script 2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 855891dc12 Clean up TypeCatalogGen dependencies
Pin to stable packages and use `net45` moniker instead of DNX.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer da9f5068aa Update runtime facade with additional packages
This had gotten out of date since it is a manual process.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 744e1e2fbb Add System.Xml.XDocument dependency to host
This resolves #604 but leaves an open question of why the package is
required at runtime, but not at compile-time.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 9f88341db1 Remove trailing comma from project.json 2016-03-01 13:21:32 -08:00
Andrew Schwartzmeyer ee7ea8011d Bump CLI to 1.0.0.001598 2016-03-01 12:27:55 -08:00
Andrew Schwartzmeyer 840c634d5e Bump .NET packages to 23829 2016-03-01 12:26:30 -08:00
Andrew Schwartzmeyer 9402c68c57 Fix Start-Sleep Pester tests 2016-02-26 13:11:14 -08:00
Andrew Schwartzmeyer 27f38f161c Bump monad with DataTable removal 2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer a67a0ca122 Add System.Threading.Thread package
Now needed to use the `Thread` type.
2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer 2518b0ab3f Bump .NET packages to 23826 2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer a4ab3cc8b6 Bump CLI version to build 1540
Latest common build.
2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer 4ddd0a8a4e Cache apt repositories on Travis 2016-02-26 11:36:47 -08:00
Andrew Schwartzmeyer f18a3478da Cache CLI on AppVeyor 2016-02-26 11:36:42 -08:00
Andrew Schwartzmeyer 48237fef3d Cache ~/.nuget on AppVeyor 2016-02-26 11:21:50 -08:00
Andrew Schwartzmeyer bc3096c94f Cache ~/.nuget on Travis
Should speed up builds by several minutes.
2016-02-26 11:05:09 -08:00
Andrew Schwartzmeyer af3e15a7bc Don't treat MMI warnings as errors on FullCLR
It can only build with warnings.

It will error if the full `SafeHandleZeroOrMinusOneIsInvalid` type is
used on FullCLR because the derivation is not completely implemented.
2016-02-24 16:35:07 -08:00
Andrew Schwartzmeyer 966be6a792 Treat C# warnings as errors 2016-02-24 16:33:17 -08:00
Andrew Schwartzmeyer 1b59a60550 Fix compiler warning about unused variable 2016-02-24 16:33:17 -08:00
Andrew Schwartzmeyer 91456111bf Fix current working directory for CMake
There is no way around this. The directory where CMake is invoked is
where it writes its build files, so we have to `pushd`. In case anything
fails, we `popd` in a finally block.
2016-02-24 11:50:56 -08:00
Andrew Schwartzmeyer 594bdacb6a Improve Start-PSBuild and Start-PSPackage functions
- Better comments
- Better indentation
- Working directory agnostic (uses `$PSScriptRoot`)
- Does not `cd`
- `PSPackage` does not call `PSBuild`
- Asserts that `bin/powershell` exists
- Derives version from `git describe` if not given
- Version parameter now a string to support metadata
2016-02-23 16:21:00 -08:00
Andrew Schwartzmeyer a18c2c43a3 Remove DSC submodule
Resolves #573.
2016-02-22 16:09:33 -08:00
Andrew Schwartzmeyer 31624ebd89 Use Start-PSBuild on AppVeyor 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer a7177c24e2 Catch exception when used on FullCLR
This is the case when the module is used on FullCLR versions of
PowerShell (necessarily on Windows).
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 472b17d547 Add Start-PSPackage command to build deb/pkg packages
Deprecates `package.sh`. Committed necessary package symlink because
creating one with PowerShell is not yet implemented.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 1453048674 Add cross-platform Start-PSBuild function
This can replace `build.ps1` and `build.sh`. However, we need to upload
packages so Travis can use PowerShell.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 839ae08df1 Change package script to generate .deb 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 694ba284c8 Add basic package creation script
Creates a .pkg for OS X using Effing Package Management.

Can be easily modified to create a .deb or .rpm etc.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer de7b0eac08 Use deployed Pester module path instead of src 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer d3c6d274ed Fix capitalization of GitHub in dev module's name 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer c8891bb5a0 Copy user permissions to group and other in bin/*
Necessary for packages so that the libraries/deps files are readable,
even when owned by root (because it was installed from a package).
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 56ed87c108 Respect Console.BackGround color
This was bugging me. Instead of using the existing console's background
color, we were hard-coding "Black." Now we just leave it alone.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer b143465401 Remove banner from profile
When trying to use PowerShell a lot, this default banner gets annoying.
I don't think we need it any more. Also change the prompt to just "PS".
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 91765b3db3 Add Emacs-style readline bindings
Very simple implementation of C-(A,E,K,D,B,F,P,R,N,S,J,L) and Alt-(B,F).
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 41a236dc5b Improve pester.sh script
- Check if PowerShell has been built before trying to use it.
2016-02-19 14:59:01 -08:00