Commit graph

2034 commits

Author SHA1 Message Date
Andrew Schwartzmeyer 0b91bf718f Whitespace clean up and re-indent 2016-04-20 10:48:08 -07:00
George Fleming 7a99b885da Modify Set-PSBreakpoint.Tests.ps1 and fix 3 pending tests 2016-04-20 10:44:16 -07:00
Sergei Vorobev 2f60586602 Merge pull request #871 from PowerShell/vors/master
Fix build scripts for windows build
2016-04-19 17:49:53 -07:00
Sergei Vorobev 33c458459c Wrap all native commands in helper function in PowerShellGitHubDev.psm1 2016-04-19 16:59:03 -07:00
Sergei Vorobev f28bd0814b Fix log message in Start-PSBuild 2016-04-19 16:40:28 -07:00
Andy Schwartzmeyer 10ab85dcaf Merge pull request #869 from PowerShell/jimtru.WSManModuleFix
Jimtru.ws man module fix
2016-04-19 16:38:31 -07:00
Andy Schwartzmeyer ecc3483061 Merge pull request #860 from PowerShell/NewVariablePesterUnitTest
Add New-Variable Pester Unit test
2016-04-19 16:37:48 -07:00
Andy Schwartzmeyer 37bbf3197b Merge pull request #857 from PowerShell/ClearVariablePesterUnitTest
Add Clear-Variable Pester Unit Test
2016-04-19 16:36:57 -07:00
Sergei Vorobev 8635c84cd9 Fix typo in PowerShellGitHubDev.psm1 2016-04-19 16:10:09 -07:00
James Truher 6df3e9619f Remove mention of format file since this is done in code now 2016-04-19 16:02:12 -07:00
JumpingYang001 7f0442a069 Update fixes based on comments for New Variable Pester Unit Test 2016-04-19 16:00:39 -07:00
JumpingYang001 1f739bb85c Remove newline var for New-Variable Pester Unit Test 2016-04-19 16:00:39 -07:00
JumpingYang001 4a619f49e3 Add New-Variable Pester Unit test 2016-04-19 16:00:39 -07:00
Sergei Vorobev db674c7977 Add try-catch to on_finish section to prevent hang 2016-04-19 16:00:09 -07:00
JumpingYang001 2400907968 Update fixes based on comments for Clear Variable Pester Unit Test 2016-04-19 15:59:26 -07:00
JumpingYang001 23aebe7945 Add Clear-Variable Pester Unit Test 2016-04-19 15:59:26 -07:00
Sergei Vorobev d25cdffcfc Add $ErrorActionPreference = 'Stop' to fail the build 2016-04-19 15:51:54 -07:00
Andy Schwartzmeyer 80b6b7e809 Merge pull request #870 from PowerShell/xunit
Use new Listener signature
2016-04-19 15:28:55 -07:00
George Fleming b8598b74ac Use new Listener signature 2016-04-19 15:14:22 -07:00
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