Commit graph

1455 commits

Author SHA1 Message Date
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
Andy Schwartzmeyer 5b248c1511 Merge pull request #597 from PowerShell/ci-cache
Enable caching on CI machines
2016-02-26 12:26:04 -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
Sergei Vorobev 98a94683fd Fail appveyor build, if CoreCLR tests failed on windows 2016-02-25 23:48:06 -08:00
Andy Schwartzmeyer 23a83184ff Merge pull request #589 from PowerShell/werror
Treat C# warnings as errors
2016-02-24 16:56:35 -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
Andy Schwartzmeyer ca26f2dea6 Fix list of submodules to update on Windows
Pester was moved to facilitate easier automatic publishing.

[skip ci]
2016-02-24 15:57:38 -08:00
Andy Schwartzmeyer 22a33fb92c Merge pull request #588 from PowerShell/cmake
Fix current working directory for CMake
2016-02-24 15:15:12 -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
Andy Schwartzmeyer 7047041404 Merge pull request #587 from PowerShell/module
Improve Start-PSBuild and Start-PSPackage functions
2016-02-23 16:49:46 -08:00
Andy Schwartzmeyer 4c69299d89 Merge pull request #586 from PowerShell/multiline
Add support for multi-line input
2016-02-23 16:41:36 -08:00
Andy Schwartzmeyer bbe0f6b0fa Merge pull request #585 from PowerShell/cursor
Fix crash when cursor goes 'off screen'
2016-02-23 16:34:14 -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
George Fleming 6776a909b2 Simply code 2016-02-23 15:23:12 -08:00
George Fleming e92c1e80cc Add support for here-string 2016-02-23 15:10:32 -08:00
Andy Schwartzmeyer f8b67d1cac Merge pull request #584 from PowerShell/remoteregfix
Adding remote registry fix for monad
2016-02-23 14:47:12 -08:00
v-alexjo af5d19a0cd Adding remote registry fix from submod 2016-02-23 13:48:41 -08:00
George Fleming a494516c5d Handle multi-line commands 2016-02-23 12:53:47 -08:00
George Fleming 4bcc0f781f Fix crash when cursor goes 'off screen' 2016-02-22 17:02:37 -08:00
Andy Schwartzmeyer 2b6dadcb12 Merge pull request #578 from PowerShell/remove-dsc
Remove DSC submodule
2016-02-22 16:29:04 -08:00
Andrew Schwartzmeyer a18c2c43a3 Remove DSC submodule
Resolves #573.
2016-02-22 16:09:33 -08:00
Andy Schwartzmeyer f67c395c1c Merge pull request #572 from PowerShell/self-host
Enable self-hosting
2016-02-22 15:12:04 -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
Andy Schwartzmeyer 666e924aad Merge pull request #569 from PowerShell/tab4
Fix case where tab completion is not at end of command
2016-02-21 16:50:13 -08:00
George Fleming 567bc785ef Reposition cursor after tab 2016-02-21 13:09:45 -08:00
George Fleming 3a0eee9894 Fix case where tab completion is not at end of command 2016-02-20 17:58:03 -08:00
Andy Schwartzmeyer 5d20ec8e37 Merge pull request #564 from PowerShell/rawui
Reconcile rawui.cs with System.Console
2016-02-19 16:14:12 -08:00
Andy Schwartzmeyer c0e94d8941 Merge pull request #566 from PowerShell/fix-xunit
Fix xUnit tests for `netstandardapp1.5`
2016-02-19 15:27:29 -08:00
Andy Schwartzmeyer 7cc95decc6 Merge pull request #565 from PowerShell/scripts
Improve debug.sh and build.sh scripts
2016-02-19 15:27:05 -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
Andrew Schwartzmeyer 3f37dfa438 Improve build.sh script
- Check for cmake, g++, and dotnet programs.
- Check for project.lock.json.
- Check that libpsl-native was compiled.
2016-02-19 14:58:48 -08:00
Andrew Schwartzmeyer 15e01bd553 Improve debug.sh script
- Move to the `bin` directly so that SOS works properly.
- Check for LLDB and PowerShell programs.
- Display help text.
2016-02-19 14:58:42 -08:00
Andrew Schwartzmeyer 9f2ce63267 Fix xUnit tests for netstandardapp1.5
With the switch to `netstandardapp1.5` framework for the host, the xUnit
test runner broke. For `dotnet test` to work with the .NET Core xUnit
runner, it must continue to target `dnxcore50`. Fortunately, we can
import our project's framework, and make everything work again.

Also improved the `xunit.sh` script to check for dependencies.
2016-02-19 14:40:17 -08:00