Skip to content

Add script to create the NuGet package from the online build artifacts #23

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

Merged
merged 1 commit into from
Oct 23, 2015

Conversation

nulltoken
Copy link
Member

Fix #22

PowerShell not being my forte, I'd be really grateful for an early feedback

/cc @bording @dahlbyk

@nulltoken nulltoken force-pushed the ntk/auto_package branch 3 times, most recently from 5be1949 to 768cbb9 Compare October 3, 2015 16:26
@nulltoken nulltoken changed the title [WIP] Add script automating the download of the build artifacts Add script automating the download of the build artifacts Oct 3, 2015
return $output
}

function Extract-BuildIdentifier($statutes, $forContext) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I can't help but think this whole function is written in a very clumsy way... Any refactoring proposal?

return $output
}

function Extract-BuildIdentifier($statutes, $forContext) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a way to make this more powershell-y?

Copy link
Member

Choose a reason for hiding this comment

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

  1. Typo in variable name
  2. $status = $statuses | where { $_.context -eq $forContext } | select -First 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dahlbyk Brilliant! ❤️ fixed

@nulltoken nulltoken changed the title Add script automating the download of the build artifacts Add script to create the NuGet package from the online build artifacts Oct 4, 2015
@nulltoken
Copy link
Member Author

Ok. I'm done for the first pass. This downloads the build artifacts and create the final NuGet packaged to be pushed.

This is (still) very crude but does the job (to my best knowledge).

Thoughts?

/cc @ethomson @carlosmn

nulltoken added a commit that referenced this pull request Oct 23, 2015
Add script to create the NuGet package from the online build artifacts
@nulltoken nulltoken merged commit 339a230 into master Oct 23, 2015
@nulltoken nulltoken deleted the ntk/auto_package branch October 23, 2015 17:51
@bording
Copy link
Member

bording commented Oct 24, 2015

I know you just merged this in, but I just wanted to say that I finally had some time to check it out and it looks good to me!

The only thing that you could do is add -NoPackageAnalysis to the nuget.exe call to avoid it displaying the "Assembly outside lib folder" warnings.

@nulltoken
Copy link
Member Author

@bording Thanks for the feedback ❤️

#27 should fix this.

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.

3 participants