Commit graph

5785 commits

Author SHA1 Message Date
Travis Plunk 24298f76f5
Packaging: make mac package require 10.12 or newer (#5649)
Fixes #4290
Make mac package require 10.12 or newer.
Required that the package is installed to a disk with macOS installed.
The Apple example XML had a background image added as well, so I added a background image:
https://user-images.githubusercontent.com/10873629/33738943-014c9d00-db50-11e7-9628-310ce6427438.png
2017-12-08 10:55:34 -08:00
Travis Plunk dcbb3a5299 Packaging: Try to make New-Unix package more readable (#5625)
* refactor start-pspackage into functions

* [Package] Added instrumentation

* [Package] update change log

* [Package] Fix distribution parameter in get-dependecies

* [Package] fix dependencies

* [Package] fix issues with validate script
2017-12-07 17:57:08 -08:00
Manikyam Bavandla 6c373905da Update 'PowerShellGet' tests to validate the new install location of AllUsers scope. (#5633)
Changed the install location of AllUsers scope on PWSH to SHARED_MODULES location.
2017-12-07 17:57:08 -08:00
Travis Plunk c04db0f79a
update signing subjects (#5650)
fixes #5642
Update the signing subject for the windows package and windows files
2017-12-07 17:56:37 -08:00
Travis Plunk c367a9def1 Packaging: Try to make New-Unix package more readable (#5625)
* refactor start-pspackage into functions

* [Package] Added instrumentation

* [Package] update change log

* [Package] Fix distribution parameter in get-dependecies

* [Package] fix dependencies

* [Package] fix issues with validate script
2017-12-07 10:48:00 -08:00
Travis Plunk e44568e853 contribution guidelines: Remove requirement for updating changelog update in pr (#5644) 2017-12-07 10:28:16 -08:00
Dongbo Wang 237ac0b740 Minor refactoring of the release build scripts (#5632)
* Update release build

* Minor refactoring of the build script
2017-12-07 10:28:16 -08:00
Dongbo Wang d4e802148c Remove 'oldPowershellExeName' and 'oldPowershellDepsName' (#5408) 2017-12-07 10:28:16 -08:00
Dongbo Wang 964e6aff47 Update a flaky test that fails intermittently in CI (#5641) 2017-12-07 10:28:16 -08:00
Mark Kraus 721d3e9edf Make Travis CI use libcurl+openssl+gssapi for macOS (#5629) 2017-12-07 10:28:16 -08:00
Dongbo Wang f837b04b8b Exclude markdown files from 'Pester' folder (#5636) 2017-12-07 10:28:16 -08:00
Manikyam Bavandla 15e609caf3 Update 'PowerShellGet' tests to validate the new install location of AllUsers scope. (#5633)
Changed the install location of AllUsers scope on PWSH to SHARED_MODULES location.
2017-12-07 08:59:31 -08:00
Travis Plunk 681dcf2864 contribution guidelines: Remove requirement for updating changelog update in pr (#5644) 2017-12-06 17:22:46 -08:00
Travis Plunk ea0aa0df79 build: fix git error in appveyor (#5631)
Add --quiet to git checkout which should resolve error message displayed in AppVeyor
2017-12-06 16:13:26 -08:00
Travis Plunk c44ddfd6fe build: unbundle pester (#5623)
# Conflicts:
#	tools/appveyor.psm1
#	tools/travis.ps1
2017-12-06 16:13:26 -08:00
Dongbo Wang 233f35f68b Minor refactoring of the release build scripts (#5632)
* Update release build

* Minor refactoring of the build script
2017-12-06 15:51:33 -08:00
Dongbo Wang 4f4d7797f7 Remove 'oldPowershellExeName' and 'oldPowershellDepsName' 2017-12-06 14:11:07 -08:00
Dongbo Wang cc125422dd
Update a flaky test that fails intermittently in CI (#5641) 2017-12-06 12:46:53 -08:00
Mark Kraus ee7fbed23c Make Travis CI use libcurl+openssl+gssapi for macOS (#5629) 2017-12-06 12:20:44 -08:00
Dongbo Wang 9a123499ed
Exclude markdown files from 'Pester' folder (#5636) 2017-12-06 12:11:01 -08:00
Travis Plunk 41cc640201
build: fix git error in appveyor (#5631)
Add --quiet to git checkout which should resolve error message displayed in AppVeyor
2017-12-05 15:51:46 -08:00
Mark Kraus c3ac21bbaf Combine Web Cmdlet Partial Class Files (#5612)
Reference #5610

This moves the partial class into a single file each. This code is purposely not sorted and the formatting is left alone to make this easier to review. There are cleanup actions planned in the referenced Issue.
2017-12-04 17:49:33 -08:00
Travis Plunk 7cb76f5b48 contribution guidelines: change to say updating changelog is required (#5586)
- Update contribution guidelines to make updating the changelog required
- add a checklist to PR template

Comment by @SteveL-MSFT :
> Everyone should understand that we are always open to feedback and nothing is set in stone. Based on a team discussion, one of the biggest costs for a release is creating the ChangeLog hence updating this document to push it to the contributor most aware of why the changes are being made and ideally how it's useful to end users.
2017-12-04 17:40:05 -08:00
James Truher [MSFT] e1f5e3eabf Run tests for Windows installer only on Windows (#5619) 2017-12-04 17:40:05 -08:00
Dongbo Wang f7ac342e4f [Feature] Supress the expected errors from Select-Xml tests (#5591) 2017-12-04 17:40:05 -08:00
Dongbo Wang c3d9978844 [Feature] Make the -SslProtocol tests pending (#5605) 2017-12-04 17:40:05 -08:00
Dongbo Wang 926f148027 Add retry logic to prerequisite URL tests (#5601)
* Disable Requisiste URLs tests

* Add retry for the URL tests
2017-12-04 17:40:05 -08:00
Mark Kraus 7da528c005 Replace HttpListener Response Tests with WebListener (#5540)
* Add Response Controller

* [Feature] Replace HttpListener Response tests with WebListener
2017-12-04 17:40:05 -08:00
Mark Kraus 737112831a Fix Get-EnvironmentInformation IsCoreCLR logic (#5592)
* Fix Get-EnvironmentInformation IsCoreCLR logic
Replace $Runtime = [System.Runtime.InteropServices.RuntimeInformation]  and $OSPlatform = [System.Runtime.InteropServices.OSPlatform]  with ($PSVersionTable.ContainsKey("PSEdition") -and $PSVersionTable.PSEdition -eq "Core").
2017-12-04 17:40:05 -08:00
Travis Plunk 25617f15c2 build: unbundle pester (#5623)
* remove pester module

* restore Pester as a module only in CI build from the git repo

* mark appveyor builds as CI builds

* remove pester exclusions

* mark travis builds as ci

* exclude publish folder from spell check

* do not run spell check on publish folder
2017-12-04 17:16:53 -08:00
Travis Plunk b039daf6f4
contribution guidelines: change to say updating changelog is required (#5586)
- Update contribution guidelines to make updating the changelog required
- add a checklist to PR template

Comment by @SteveL-MSFT :
> Everyone should understand that we are always open to feedback and nothing is set in stone. Based on a team discussion, one of the biggest costs for a release is creating the ChangeLog hence updating this document to push it to the contributor most aware of why the changes are being made and ideally how it's useful to end users.
2017-12-04 14:32:02 -08:00
James Truher [MSFT] eaeca638fc Run tests for Windows installer only on Windows (#5619) 2017-12-04 14:18:52 -08:00
Dongbo Wang 3469d4b13f [Feature] Supress the expected errors from Select-Xml tests (#5591) 2017-12-04 13:26:53 -08:00
Dongbo Wang c6f27dcb17 [Feature] Make the -SslProtocol tests pending (#5605) 2017-12-04 11:38:30 -08:00
Dongbo Wang d105e15521 Add retry logic to prerequisite URL tests (#5601)
* Disable Requisiste URLs tests

* Add retry for the URL tests
2017-12-04 10:07:30 -08:00
Mark Kraus 95a8a64260 Replace HttpListener Response Tests with WebListener (#5540)
* Add Response Controller

* [Feature] Replace HttpListener Response tests with WebListener
2017-12-04 09:52:14 -08:00
Mark Kraus ec8b849c47 Fix Get-EnvironmentInformation IsCoreCLR logic (#5592)
* Fix Get-EnvironmentInformation IsCoreCLR logic
Replace $Runtime = [System.Runtime.InteropServices.RuntimeInformation]  and $OSPlatform = [System.Runtime.InteropServices.OSPlatform]  with ($PSVersionTable.ContainsKey("PSEdition") -and $PSVersionTable.PSEdition -eq "Core").
2017-12-02 15:39:04 +04:00
Staffan Gustafsson a9c6292903 Enable conversions from PSMethod to Delegate (#5287)
Underpinnings to make calling of Extension methods /Linq easier from PowerShell.
Enables the following that previously had to be done via reflection.

class M {
  [int] Twice([int] $value) { return 2 * $value }

  [int] DoubleSum([int[]] $values) {
     return [Linq.Enumerable]::Sum($values, [M]::Twice)
  }
}

Each PSMethod is created as with a unique type for the combinations of method signatures in the MethodInfos it represents.

PSMethod<T> where T is a MethodGroup<>, potentially recursive in the last template argument.

This way, we can determine by just looking at the type of a PSMethod if there exists a conversion from the PSMethod to a delegate.
2017-12-01 18:40:35 -08:00
Steve Lee 2b7c22335f Remove unncessary check for Paths.count > 0 as there is code later to use the current (#5596)
Remove unnecessary check for Paths.count > 0 as there is code later to use the current working directory since -Path is not a mandatory parameter.
Updated ShouldProcess to output the internal action on adding paths rather than the user action (which is the cmdlet name).

Updated tests to not specify -Path

Fix #5594
2017-12-01 17:34:30 -08:00
Travis Plunk 0dfc1f4257 Remove exclusion for hang and add context exception for remaining instances (#5595) 2017-12-01 17:34:30 -08:00
Dongbo Wang 308d03e7a7 Update PowerShell executable name in using-vscode.md (#5593) 2017-12-01 17:34:30 -08:00
Dongbo Wang 130ec8bb81 Skip null-element check for collections with a value-type element type (#5432)
* Fix NotNullOrEmpty check logic

* Fix a test issue on Unix
2017-12-01 17:34:30 -08:00
Chunqing Chen 22abe98c05 Fix xunnit test for PS (#4780)
* Initial work to enable xunit

* Moved AssemblyOriginatorKeyFile to csharp.tests.csproj

* Native binary has dylib extension on macOS
2017-12-01 17:34:30 -08:00
Dan Travison fef44277ee Use explicit libpsl-native binary name for dllimport. (#5580) 2017-12-01 17:34:30 -08:00
Steve Lee b69ff717ab Remove unncessary check for Paths.count > 0 as there is code later to use the current (#5596)
Remove unnecessary check for Paths.count > 0 as there is code later to use the current working directory since -Path is not a mandatory parameter.
Updated ShouldProcess to output the internal action on adding paths rather than the user action (which is the cmdlet name).

Updated tests to not specify -Path

Fix #5594
2017-12-01 10:57:00 -08:00
Travis Plunk baa0a28a21 Remove exclusion for hang and add context exception for remaining instances (#5595) 2017-12-01 09:47:18 -08:00
Dongbo Wang ff8679b344
Update PowerShell executable name in using-vscode.md (#5593) 2017-11-30 20:34:00 -08:00
Dongbo Wang b5f84c2b39 Skip null-element check for collections with a value-type element type (#5432)
* Fix NotNullOrEmpty check logic

* Fix a test issue on Unix
2017-11-30 14:46:09 -08:00
Chunqing Chen 52df947080 Fix xunnit test for PS (#4780)
* Initial work to enable xunit

* Moved AssemblyOriginatorKeyFile to csharp.tests.csproj

* Native binary has dylib extension on macOS
2017-11-30 14:44:41 -08:00
Dan Travison 47f8467e49 Use explicit libpsl-native binary name for dllimport. (#5580) 2017-11-30 08:17:16 -08:00