Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scripts for running vsimporter on all the samples #2097

Merged
merged 2 commits into from
Feb 27, 2017

Conversation

memontic-ms
Copy link
Contributor

These changes are needed for packaging's CI builds

[string]$zipFile = $(throw 'Mandatory parameter "zipFile" is not set.'),
[string]$outputDir = $(throw 'Madatory parameter "outputDir" is not set.')
)

$zipFile = gci $zipFile
Copy link
Member

@bbowman bbowman Feb 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converts to absolute path (it was useful to have a * in the path)


In reply to: 103060152 [](ancestors = 103060152)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that the normal way? gci is usually used to get a child item of the current item.


In reply to: 103061610 [](ancestors = 103061610,103060152)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose get-item would be more correct


In reply to: 103062479 [](ancestors = 103062479,103061610,103060152)

@@ -14,15 +15,18 @@ $ErrorActionPreference = "Stop"

& $PSScriptRoot\unzip.ps1 -zipFile $zipFile -outputDir $tempDir

$XCodeProjects = gci -recurse $tempDir\*.xcodeproj
$XCodeProjects = gci -recurse $PSScriptRoot\..\..\samples\*.xcodeproj
$XCodeProjects += gci -recurse $PSScriptRoot\..\..\tests\testapps\*.xcodeproj
Copy link
Member

@bbowman bbowman Feb 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use the more generic thing where the xcode folder is passed in. #WontFix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Then we'd have to run the script twice and so we'd unzip tools twice. At that point we should just be running vsimporter directly and not using this script at all.


In reply to: 103060288 [](ancestors = 103060288)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking you'd pass in \build\ and let it recurse from there


In reply to: 103061909 [](ancestors = 103061909,103060288)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..why build? There's no xcodeprojs under build.


In reply to: 103062579 [](ancestors = 103062579,103061909,103060288)

@bbowman
Copy link
Member

bbowman commented Feb 25, 2017

:shipit:

#>
param(
#NOTE: using Parameter(Mandatory) will hang the VSO build job since powershell will block waiting for user input.
#NOTE: using Parameter(Mandatory) will hang the VSO build job since
# powershell will block waiting for user input.
[string]$zipFile = $(throw 'Mandatory parameter "zipFile" is not set.'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the build def looks like, but, do we need to do this at all? I thought we don't have a zip file anymore.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to "install" the tools package. I thought it would be better for build isolation to not actually install it and instead just unzip the package and run vsimporter from the unzipped package

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If and when we move vsimporter into the VSIX for "new project" support, well need to come up with a way to test that in isolation. Not sure what that will look like.

@pradipd
Copy link
Contributor

pradipd commented Feb 27, 2017

:shipit:

@memontic-ms memontic-ms merged commit 5e79572 into microsoft:packaging Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants