Commit graph

221 commits

Author SHA1 Message Date
Jason Shirk
8b056776c0 Stop using 'Open PowerShell' and OPS in code (#1838) 2016-08-16 17:03:34 -07:00
Andrew Schwartzmeyer
a9e809c18a Fix naming of Unix packages
- .NET Core RID suffixes removed
- `el7.centos` suffix added to RPM
- `1ubuntu1.14.04.1` iteration used for DEB packages

`~` cannot be used after `ubuntu1` because GitHub release renames it to
a `.`; additionally, no packages lack the final suffix `.1`. While my
machine is `.5` I could find no packages that went past `.3`, so let's
use this to indicate that it works for `14.04.1` and forward.

We are *not* recreating the alpha.9 packages, but will we rename them
accordingly. This means that the filenames will be "correct" but the
meta-data will be out-of-date.
2016-08-16 16:07:54 -07:00
Matt Wrock
ff5060b449 provide a more actionable message when vcvarsall.bat is missing 2016-08-14 11:30:54 -07:00
Andrew Schwartzmeyer
3f9b1833ac Fix Start-PSPackage for Release build on Windows 2016-08-11 17:38:45 -07:00
Andrew Schwartzmeyer
349491be84 Support building Ubuntu 16.04 packages 2016-08-11 13:42:02 -07:00
Andrew Schwartzmeyer
39184852d9 Add logic to rename package with runtime suffixed 2016-08-11 13:38:54 -07:00
Andrew Schwartzmeyer
49d297c410 Fix permissions of package files
The DLLs should not be marked executable on Unix.

Also remove deb-build-depends as the `dotnet` package is not yet
universally available.
2016-08-11 13:38:54 -07:00
Andrew Schwartzmeyer
c0aac111d3 Enable side-by-side Unix packages 2016-08-11 13:38:54 -07:00
Andrew Schwartzmeyer
5235fed2c7 Refactor Start-PSPackage
Moved Unix package code into New-UnixPackage, switching on $Types to
call the appropriate function given the list of types.

Also fixed bug with chmod on a symlink; it was unnecessary.
2016-08-11 13:38:54 -07:00
Andrew Schwartzmeyer
a3f3734f09 Include license during build
Rather than including it only at packaging, we should include this
license as part of `dotnet build` and `dotnet publish`.
2016-08-11 13:38:54 -07:00
Alex Jordan
f78ed27597 Adding man page for linux 2016-08-10 14:37:44 -07:00
Andy Schwartzmeyer
800382f019 Merge pull request #1698 from PowerShell/raghushantha-packagemetadatabranch
Updated *nix package metadata fields: Issue #1422
2016-08-10 11:50:12 -07:00
Andrew Schwartzmeyer
0fc21db411 Fix Start-PSPester setup
Start-PSPester must ensure that the environment variable `PSMODULEPATH`
is not set before starting the new PowerShell process.
If it is set, then the tests are not guaranteed to be correct,
as they will be operating with the host process's `PSMODULEPATH`,
thus ignoring their own modules.

I also refactored the Start-PSPester command setup code.
2016-08-09 12:03:30 -07:00
Raghu Shantha [MSFT]
013580e7c1 Updated *nix package metadata fields: Issue #1422 2016-08-09 10:58:22 -07:00
Mike Richmond
73ea16f23c Adding WinRM registration script and pwrshplugin publishing. 2016-08-08 09:38:43 -07:00
Mike Richmond
2a8c04d6b0 Separated Windows binary build by CLR 2016-08-08 09:38:43 -07:00
Andy Schwartzmeyer
0c7573a71a Merge pull request #1638 from PowerShell/frangom/bugfixes
Fixing path to remove ILs after the ngen binary is generated. This fixes issue ##1636
2016-08-05 13:59:13 -07:00
Francisco Gamino
d82bbeca76 Fixing write-verbose call to let the user have control over it when calling the function 2016-08-05 13:30:04 -07:00
Andrew Schwartzmeyer
09e1683098 Add Ubuntu 16.04 RID 2016-08-05 10:09:40 -07:00
Mike Richmond
a7f5d28f5f Fixing Start-PSPester for non-Windows environments. 2016-08-04 16:46:44 -07:00
Jason Shirk
5676a44f38 Merge pull request #1650 from PowerShell/raghushantha-msieulabranch
EULA for MSI Installer
2016-08-04 15:47:03 -07:00
Francisco Gamino
20ce3cca2b Fixing path to remove ILs after the ngen binary is generated. 2016-08-04 15:33:57 -07:00
Andrew Schwartzmeyer
3143ccf97c Use default Ruby on OS X 2016-08-04 13:52:30 -07:00
Raghu Shantha [MSFT]
b6b95c4d63 EULA for MSI Installer 2016-08-04 13:30:00 -07:00
Mike Richmond
419db0e832 Removing dependency on JSON .Net for FullClr 2016-08-04 13:15:34 -07:00
Mike Richmond
33c1f2db23 Fixing execution policy so test automation works 2016-08-04 13:15:34 -07:00
Mike Richmond
f8b9b88986 Bug fixes and cleanup in preparation for push. 2016-08-04 13:15:34 -07:00
Andrew Schwartzmeyer
39faa3dd25 Fix OS X OpenSSL link for .NET Core
Due to https://github.com/Homebrew/brew/pull/597,
.NET Core's installation instructions of `brew link --force openssl` are
now invalid (for good reasons, due to security holes). Until .NET Core
updates their libraries to find the OpenSSL libraries correctly, we can
update them as part of `Start-PSBootstrap`.

See https://github.com/dotnet/cli/issues/3964
2016-08-04 11:21:48 -07:00
Andrew Schwartzmeyer
f866f8b06f Fix inconsistent braces and whitespace in build.psm1 2016-08-03 13:36:13 -07:00
Andrew Schwartzmeyer
c35c9e5ef2 Fix libclrjit name for OS X
It's a dylib, not a so.
2016-08-03 13:36:13 -07:00
Andrew Schwartzmeyer
9c205c6158 Fix crossgen search for Ubuntu/CentOS 2016-08-03 13:13:14 -07:00
Francisco Gamino
c16209e39d Enable crossgen on CI 2016-08-03 13:12:51 -07:00
Francisco Gamino
58e7f480c4 Addressing code review comments 2016-08-03 13:12:22 -07:00
Francisco Gamino
733c9f0ab9 Enable crossgen for PowerShell assemblies on Linux 2016-08-03 13:12:16 -07:00
Francisco Gamino
92a37b4675 Enable crossgen for PowerShell binaries on Windows 2016-08-03 10:48:27 -07:00
Alex Jordan
b1ea06aaef Merge pull request #1593 from PowerShell/ealexjordan/pscolors
Ealexjordan/pscolors
2016-08-03 10:37:20 -07:00
Sergei Vorobev
08fda6842a Replace powershell-based resgen by dotnet C# based one 2016-08-02 11:47:53 -07:00
Alex Jordan
e2846379b8 Fixing default and error colors for PSReadLine 2016-08-02 00:16:54 -07:00
Sergei Vorobev
aa0a00b6fb Fix Start-DevPowerShell to use upercase for PSMODULEPATH (unix) 2016-07-28 11:47:36 -07:00
James Truher [MSFT]
3ecac72baf Merge pull request #1526 from PowerShell/jameswtruher/TagPesterTests
Jameswtruher/tag pester tests
2016-07-27 14:39:32 -07:00
Sergei Vorobev
ce5cc3ca37 Fix Start-DevPowerShell for PowerShellCore edition on windows 2016-07-27 12:27:41 -07:00
James Truher
5e61213be9 update appveyor.yml to check for bad test tags
add the function to check tags to build.psm1
rename the parser tests so they actually execute
2016-07-27 12:06:51 -07:00
James Truher
19e1cc450b final changes for start-pspester 2016-07-27 12:06:51 -07:00
James Truher
a784149b36 all tests are now marked with proper tag
also, update build.psm1 to be more flexible
2016-07-27 12:06:51 -07:00
James Truher
362a807438 Add changes to build.psm1 to run only CI tests 2016-07-27 12:06:51 -07:00
Sergei Vorobev
2fe4764830 Fix Start-DevPowerShell for Unix 2016-07-27 10:55:42 -07:00
Sergei Vorobev
99e4b87cc6 Teach Start-DevPowerShell run CoreCLR version 2016-07-27 10:49:46 -07:00
Andy Schwartzmeyer
1349372b39 Merge pull request #1538 from PowerShell/vors/sma-only
Make Start-PSBuild -SMAOnly Unix-friendly
2016-07-27 10:29:16 -07:00
KarolKaczmarek
2405c65113 Merge pull request #1464 from PowerShell/kkaczma/mc
Fixing mc.exe detection and installing required tools in Start-PSBootstrap. Fixes #1451
2016-07-27 10:18:52 -07:00
Sergei Vorobev
6984d654b7 Make Start-PSBuild -SMAOnly Unix-friendly 2016-07-27 09:02:36 -07:00
Raghu Shantha [MSFT]
c0cd3f9347 Fix for handling alphanumeric characters in package build field 2016-07-26 21:22:37 -07:00
Sergei Vorobev
bcac0ece62 Improve Start-PSBuild -Clean
Always do the clean in the root folder
2016-07-26 17:45:49 -07:00
Sergei Vorobev
4450005a52 Fix TypeGen with the new layout 2016-07-26 16:59:45 -07:00
Sergei Vorobev
e97af44674 Rename src/powershell-windows to src/powershell-win-core
- Update build.psm1
- Update docs
2016-07-26 16:48:57 -07:00
Sergei Vorobev
6626720e44 Introduce Microsoft.PowerShell.SDK
- introduce SDK project with our dependencies and CoreCLR framework
  for runtime.
- Move dependencies for Full from ConsoleHost to powershell-win-full
- make powershell-win-full Top-level project
- Change build.psm1 to do publish for -FullCLR build
- Update docs
2016-07-26 16:48:57 -07:00
Andrew Schwartzmeyer
41173a3b65 Rename IsCore to IsCoreCLR 2016-07-26 11:54:08 -07:00
Karol Kaczmarek
05485c7a25 Confirming before installing choco and improving prompt message 2016-07-25 13:55:34 -07:00
Karol Kaczmarek
536085ea58 Not installing choco when prerequisites present and confirming before updating env variable 2016-07-25 13:55:33 -07:00
Karol Kaczmarek
83d5d95956 Installing Windows 10 SDK 2016-07-25 13:55:32 -07:00
Karol Kaczmarek
1c480ded72 Removing incorrect warning about supportability and using precheck 2016-07-25 13:55:02 -07:00
Karol Kaczmarek
38fc724a0b Installing cmake 2016-07-25 13:55:00 -07:00
Karol Kaczmarek
6a989e86a9 Installing chocolatey and updating machine path 2016-07-25 13:54:30 -07:00
Mike Richmond
0d49cb8aa5 Merge pull request #1490 from PowerShell/mirichmo/pwrshplugin-optimization-and-build-fix
Fixing bug in pwrshplugin config file reader and wrapping mc.exe call…
2016-07-25 09:00:32 -07:00
Sergei Vorobev
ea3e7db598 Simplify Start-PSPester
Pester already handles folder vs file.
There is no need to have custom logic in Start-PSPester.
2016-07-22 17:46:12 -07:00
Sergei Vorobev
3674bacfa8 Copy pwrshplugin into the Full CLR version artifacts 2016-07-22 16:11:37 -07:00
Sergei Vorobev
875402ad53 Create separate Top-level directory per platform
- Replace src\powershell top level project by two
  new root-level projects:
    - src\powershell-unix
    - src\powershell-windows
- Break src\Modules into more granular structure:
  - Shared
  - Windows+Unix-Core
  - Windows-Core
  - Windows-Core+Full
  - Windows-Full
  - To be created: Unix-Core. We will do it as a separate PR
- Fix #1122 : Platform-specific set of Modules (and assemblies)
- Fix Start-TypeGen to work with new top level folders layout
2016-07-22 16:11:29 -07:00
Mike Richmond
156418ceab Fixing bug in pwrshplugin config file reader and wrapping mc.exe calls in vcvarsall.bat. 2016-07-22 15:04:46 -07:00
Karol Kaczmarek
d490def51b Fixing mc.exe detection 2016-07-21 11:07:45 -07:00
Andy Schwartzmeyer
0a87a3d828 Merge pull request #1436 from PowerShell/vors/sma-only
Add Start-PSBuild -SMAOnly option for faster incremental builds
2016-07-20 17:17:33 -07:00
Sergei Vorobev
738d4ea005 Add Start-PSBuild -StopDevPowerShell switch 2016-07-19 19:55:49 -07:00
Sergei Vorobev
3f1ba7a605 Add Start-PSBuild -SMAOnly option for faster incremental builds 2016-07-19 19:55:49 -07:00
Mike Richmond
ee9418f6b6 Cleaning up build.psm1 per code review comments. 2016-07-19 16:41:13 -07:00
Mike Richmond
8ab10c52a9 Positioning powershell.exe in Microsoft.PowerShell.ConsoleHost for consumption by Start-DevPowerShell 2016-07-19 16:41:13 -07:00
Mike Richmond
4e7f582d43 Adding ConfigFileReader back into the plugin and fixing it to more efficiently parse the configuration file. 2016-07-19 16:41:13 -07:00
Mike Richmond
d7618d731d Additional fixes in preparation for review and pull request 2016-07-19 16:41:13 -07:00
Mike Richmond
c3bf2547e6 Backing up changes where the CoreCLR version runs on Nano Server. It still has the pwrshplugin!WSManPluginStartup call issue. 2016-07-19 16:41:13 -07:00
Mike Richmond
77a26b6b77 Additional code changes and link fixes 2016-07-19 16:41:13 -07:00
Mike Richmond
8948aa7efb Initial changes to split the CMake project into a hierarchical set of CMakeLists.txt files 2016-07-19 16:41:13 -07:00
Andrew Schwartzmeyer
a4dec332b4 Import Pester from new location
This is somewhat temporary as we're about to investigate using upstream
Pester without needing to have it as a submodule, and failing that,
moving it to a vendor folder.
2016-07-14 11:14:05 -07:00
Andrew Schwartzmeyer
92495065e8 Guard Linux native build steps
So that non-zero exit codes fail the build, and the tests are run
verbosely.
2016-07-13 15:46:25 -07:00
Raghu Shantha [MSFT]
05b350961c Add ability to perform SxS install in MSI package manifest 2016-07-12 15:37:40 -07:00
Andy Schwartzmeyer
12d378330a Merge pull request #1279 from PowerShell/andschwa/artifacts
Build Linux and OS X packages on Travis
2016-07-06 14:41:45 -07:00
dantraMSFT
767e706645 Fix grammer on comment 2016-07-05 13:13:47 -07:00
dantraMSFT
6fa898a4e8 Comment out mc.exe search logic.
- It's not currently not used
- Search fails on clean systems that are setup exclusively using PowerShell's Full CLR setup instructions.
2016-07-05 13:03:25 -07:00
Andrew Schwartzmeyer
b1621edbc9 Add packaging dependencies to Start-PSBootstrap 2016-07-05 11:37:42 -07:00
Andrew Schwartzmeyer
17a274b670 Update dependencies list 2016-07-05 10:41:43 -07:00
Raghu Shantha [MSFT]
934c73d4cd Disable verbosity during package creation - now that we are stable 2016-07-05 09:26:16 -07:00
Sergei Vorobev
b29948afbe Update docs\building\windows-full.md + typo fixes 2016-07-01 13:51:14 -07:00
Sergei Vorobev
ca321b9322 Improve Start-DevPowerShell
- Rename Start-DevPSGithub to Start-DevPowerShell
- Add Configuration parameter to Start-PSBuild
- Add -Command parameter to Start-DevPowerShell
2016-07-01 13:16:53 -07:00
Sergei Vorobev
916d17e958 Fix Microsoft.PowerShell.ConsoleHost/map.json 2016-07-01 12:20:48 -07:00
Sergei Vorobev
ffbdb41fe5 Add Convert-TxtResourceToXml function to build.psm1 2016-07-01 12:20:48 -07:00
Andrew Schwartzmeyer
19a4f4faf5 Fix IsUbuntu logic in build module
I previously broke the automatic uninstallation logic by changing how I
identified the Linux distribution.
2016-06-30 13:41:43 -07:00
Andy Schwartzmeyer
31d35f9c06 Merge pull request #1248 from PowerShell/kapil/nuget
Add CoreCLR nuget packages
2016-06-30 09:21:14 -07:00
Andrew Schwartzmeyer
2e927d8155 Disable xUnit tests
This is temporary. We need to rewrite the test context to ensure the
AssemblyLoadContext is used properly, since the default can no longer be
initialized.
2016-06-28 20:08:11 -07:00
Sergei Vorobev
ca6bc352b4 Remove extra output from Copy-MappedFiles 2016-06-28 15:52:38 -07:00
Andy Schwartzmeyer
b294a46d2e Merge pull request #1210 from PowerShell/andschwa/rtm
Update PowerShell to use .NET Core 1.0
2016-06-28 14:37:20 -07:00
Andrew Schwartzmeyer
5e3150f429 Use Start-TypeGen to generate type catalog dynamically 2016-06-28 12:57:44 -07:00
Sergei Vorobev
e647549d0d Exclude Microsoft.WSMan.Management from the list of default snapins
Fix #1180
2016-06-28 12:14:18 -07:00
Raghu Shantha [MSFT]
1c5cd64251 Added ability to choose install location, issue #1135 2016-06-27 16:04:57 -07:00
Raghu Shantha [MSFT]
e8145e056d Added Assets path to New-MSIPackage invocation 2016-06-27 11:50:14 -07:00