Commit graph

14 commits

Author SHA1 Message Date
Sergei Vorobev 99a55b7a72 Fix #528 : make powershell.exe build with VS 2015
Add legacy_stdio_definitions.lib to the list of linked assemblies
2016-03-15 13:06:26 -07:00
Sergei Vorobev b126d698e2 Hide output of dotnet restore by default
Address Andy's comments about build script.
Add more information about the version into build
Use windows inbox version of pester for FullCLR
Revert dotnet cli to a known good version to avoid #638
2016-03-11 18:24:43 -08:00
Sergei Vorobev b28d96d700 Incorporate build.FullCLR.ps1 in PowerShellGitHubDev.psm1
This commit fixes #652
2016-03-11 16:19:05 -08:00
Andrew Schwartzmeyer 05ef797849 Add -Clean switch to Start-PSBuild
And use full names of cmdlets.
2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer 4e76a6261f Validate -Runtime 2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer e349704fa1 Add Start-PSPackage -Type switch to build any output
If not specified, "deb" is used as default on Linux. This should be
updated to check the distribution and required package build
dependencies.

Dependency names switched per package type, since specific package names
are different. Should check if this causes an issue on OS X when the
names are empty.
2016-03-07 16:43:05 -08:00
Andrew Schwartzmeyer e1c0f68098 Add switch to Start-PSBuild any specific -Runtime
Much better argument passing to CLI. Thanks @vors.
2016-03-07 16:08:50 -08:00
Andrew Schwartzmeyer 7673c4e90f Add Microsoft.PowerShell.Platform module
- Exports the IsCore, IsLinux, IsOSX, and IsWindows variables
- Imported by the default PSL profile
- Can be used automatically in Pester tests and Open PowerShell sessions
- Should maybe become a default module once it is polished
- PowerShellGitHubDev module does not explicitly use it because on
  FullCLR PowerShell (normal Windows development) it will not be
  imported automatically
2016-03-04 12:11:01 -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
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
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 d3c6d274ed Fix capitalization of GitHub in dev module's name 2016-02-22 11:29:03 -08:00
Renamed from PowerShellGithubDev.psm1 (Browse further)