Commit graph

2015 commits

Author SHA1 Message Date
Andy Schwartzmeyer a655b439bc Merge pull request #850 from PowerShell/andschwa/fix-xunit
Re-enable xUnit tests on Linux
2016-04-18 19:27:55 -07:00
Sergei Vorobev 73a957fb51 Merge pull request #855 from PowerShell/andschwa/psoptions
Add New-PSOptions
2016-04-18 13:16:04 -07:00
Andy Schwartzmeyer c7c0d54baf Merge pull request #858 from PowerShell/options
Re-write host code command parser engine to support both Linux and Windows style options.  Also, add support for -noninteractive and -encodedcommand.
2016-04-18 13:00:33 -07:00
George Fleming 71ab234674 fix typo 2016-04-15 12:35:11 -07:00
George Fleming 969dc932ec Change InvalidOperationException to PSInvalidOperationException because monad code looks only for PS version to rethrow MissingMandatoryParameter exception. 2016-04-15 10:56:22 -07:00
Andy Schwartzmeyer 3501376053 Merge pull request #845 from PowerShell/SetVariablePesterUnitTest
Add Set-Variable Pester Unit test
2016-04-15 09:30:52 -07:00
Andy Schwartzmeyer e879e92c48 Merge pull request #853 from PowerShell/andschwa/undo-foreach
Revert use of foreach in ALC
2016-04-15 09:10:28 -07:00
JumpingYang001 ca049ba56f Updaet fixed comments for Set-Variable Peste unit test 2016-04-14 19:27:18 -07:00
Andrew Schwartzmeyer 5c7fcbb462 Enable xUnit tests on Linux
We have to pretend they pass on OS X for now.
2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer 3b24ba5dd3 Allow default ALC to not be PowerShell's. 2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer dc9b4c595d Fix xUnit tests for Linux
The latest xUnit packages fix the "could not resolve coreclr path"
problem we were having. To resolve all dependencies, the cli-deps feed
was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default
AssemblyLoadContext.
2016-04-14 18:06:57 -07:00
Andrew Schwartzmeyer 94e5469458 Refactor options into New-PSOptions
Deduction of PowerShell output path is now done in `New-PSOptions`,
which returns a hash table representing the build options, so that it
can be done outside of `Start-PSBuild`.

`Start-PSBuild` saves the options it creates as a script-local variable,
`$script:Options`.

`Get-PSOutput` will either unwrap the an options hash table parameter,
the script local options hash table, or use the default options.

Thus, if `Start-PSBuild` hasn't been run, it can be used to get the
output path given non-default options like this:

```powershell
Get-PSOutput -Options (New-PSOptions -Publish)
```

Or simply call `Get-PSOutput` to get the best-guess default path.

Note that because ValidateSet does not support the use of constant
variables, the set of runtimes has to be duplicated, and an empty
runtime is supported.
2016-04-14 18:06:04 -07:00
Andrew Schwartzmeyer e8ed0b45d7 Clean up whitespace in build module 2016-04-14 18:06:04 -07:00
Andrew Schwartzmeyer 40b3888dcb Revert use of foreach in ALC
I forgot to revert this in #814, thanks @daxian-dbw for the pointer.
2016-04-14 17:34:00 -07:00
Andy Schwartzmeyer 9496106637 Merge pull request #830 from PowerShell/UnitTest_Temp
Add Unit test for Set-PSBreakpoint
2016-04-14 11:49:08 -07:00
Andy Schwartzmeyer df6d558fee Merge pull request #848 from PowerShell/andschwa/try-osx
Enable OS X tests on Travis
2016-04-14 11:45:26 -07:00
Andrew Schwartzmeyer 50093b202a Update documentation for OS X testing
Copy the Travis CI badge for 10.11. It is the same badge, but it will
fail if the build fails. I don't see a way to have separate badges, but
this highlights that the platform is being tested.
2016-04-14 11:26:34 -07:00
George Fleming 4c1ee1c589 Prevent UI popups when run with -noninteractive 2016-04-14 11:18:47 -07:00
George Fleming ec61d56c0e minor change to error message 2016-04-14 10:54:01 -07:00
Andrew Schwartzmeyer b930eeef9f Disable broken OS X Pester tests
- The Get-Process cmdlet on OS X has issues due to permissions
- The Get-Process test in NativeLinuxCommands should have been removed
- The ProcessName property has the same bug that has been fixed on Linux
2016-04-14 10:05:51 -07:00
Andrew Schwartzmeyer 745fd43ede Increase ulimit on OS X 2016-04-14 09:45:18 -07:00
Andrew Schwartzmeyer 6851fe374c Enable OS X on Travis
Remove unsupported osx.10.10-x64 moniker. Use `osx_image: xcode7.3` to
get an OS X 10.11 image on Travis.
2016-04-14 09:45:18 -07:00
George Fleming d1edcb38bd Redo command-line parsing, add -noninteractive and -encodedcommand options 2016-04-14 09:09:52 -07:00
Andy Schwartzmeyer ff4bc02781 Merge pull request #844 from PowerShell/ealexjordan-patch-1
Update linux.md
2016-04-14 08:57:24 -07:00
TingLiu6 92ac20f83b Add Unit Test for Out-File,Out-String,Write-Error 2016-04-14 00:17:02 -07:00
JumpingYang001 60c3b58f9e Merge remote-tracking branch 'origin/master' into SetVariablePesterUnitTest 2016-04-13 22:39:31 -07:00
JumpingYang001 46135239ba Add Set-Variable Pester Unit test 2016-04-13 20:37:27 -07:00
TingLiu6 5300811ff9 Fixed the issue in PR 2016-04-13 20:16:36 -07:00
Alex Jordan b06a44cb1e Update linux.md
Several people have missed the bootstrap step for dotnet installation, making that slightly clearer in documentation.
2016-04-13 19:38:08 -07:00
Andy Schwartzmeyer 7fa31c444c Merge pull request #843 from PowerShell/andschwa/travis-osx
Setup OS X on Travis CI
2016-04-13 19:31:05 -07:00
Andrew Schwartzmeyer b2bc4183fe Disable Travis CI OS X support
Unfortunately, Travis CI's OS X machines are 10.9.5, per
https://docs.travis-ci.com/user/osx-ci-environment/#CI-environment-OS.
While NuGet supports the RID, .NET Core does not yet publish 10.9
packages, resulting in a build failure we can't do anything about.

I've asked for best-effort support by providing runtime packages for
10.9 in dotnet/corefx#7731.

Revert "Add OS X 10.9 runtime"

This reverts commit 19ab0de84c.
2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer ed62e5c6e6 Add OS X 10.9 runtime 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 3d21d5da93 Deal with paths magically in Start-PSBuild 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer beccce54a8 Use matrix.include and fix OS X PATH 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 14837da664 Update documentation for Start-PSBootstrap
Also moved Git setup section first.
2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 38041211b5 Remove deprecated omibuild and psrp scripts 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer aa1af214bc Add OS X to Travis CI matrix 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 7538951dfa Install package dependencies in download.sh 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 70f921e824 Update AppVeyor to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer 995eaf4c0f Update Travis to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer a031dd9095 Remove deprecated bootstrap.sh 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer d94a040229 Add Start-PSBootstrap function
Installs Open PowerShell build dependenices on all platform; deprecates
`bootstrap.sh`.
2016-04-13 19:24:04 -07:00
Andrew Schwartzmeyer a5dfe80d9a Download and install packages for Ubuntu and OS X
This both downloads the v0.3.0 release for the current platform and now
also installs it (requiring `sudo`). Should probably rename.
2016-04-13 18:58:23 -07:00
Andy Schwartzmeyer 3d56952369 Merge pull request #842 from PowerShell/andschwa/build-dwim
Import-Module PowerShellGitHubDev in build.sh
2016-04-13 18:58:07 -07:00
Andrew Schwartzmeyer 9fc0dd451b Import-Module PowerShellGitHubDev in build.sh
Make it Do What I Mean.
2016-04-13 18:56:23 -07:00
Andy Schwartzmeyer d43d4f6549 Merge pull request #840 from PowerShell/andschwa/update-pester
Bump Pester with fixes
2016-04-13 15:16:09 -07:00
Andrew Schwartzmeyer e210cf14c0 Bump Pester with fixes 2016-04-13 14:57:20 -07:00
Andy Schwartzmeyer 831343f096 Merge pull request #825 from PowerShell/andschwa/master
Update files from psl-monad source-depot [SD:695331]
2016-04-13 14:14:14 -07:00
Andy Schwartzmeyer 7048b5774c Merge pull request #834 from PowerShell/psreadline2
Host code to enable PSReadLine, and remove checking of .NET Framework
2016-04-13 13:57:45 -07:00
Andy Schwartzmeyer 2a7d6a51c6 Merge pull request #814 from PowerShell/andschwa/recursive-alc
Fix stack overflow exception when loading assemblies
2016-04-13 13:54:38 -07:00