-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add AppVeyor Build #365
Add AppVeyor Build #365
Conversation
b616a12
to
1b871e8
Compare
I'm not 100% confident this will work the first time. I'm an AppVeyor n00b but it shouldn't take too long to whip into shape. Also, add *.yml to .gitattributes to force LF normalization
18e1061
to
e1eac2a
Compare
YAML is rather specific about EOL normalization, so I'm assuming what you were seeing is a quirk of the syntax highligher. I've taken the liberty of rewriting this branch with AppVeyor is set up for this project and the PR is building. 🎉 |
# Nothing to build at this point, just run Pester tests | ||
$testResultsFile = Join-Path $pwd TestResults.xml | ||
$testing = @{ | ||
Script = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build failed because no value is specified here:
OutputFile : The term 'OutputFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
A bit of searching on using Pester with AppVeyor turned up this series:
Of particular interest is that the tests are also run against PowerShell 2.0. |
Thanks for the links! I wonder if the |
Hmm, the runspace line works on PS v3 in my VM. Grrr.. |
OK,the test failure now is legit. I think I need to update my Get-SshPath tests to reflect changing that function back to using $env:home and Resolve-Path. The think about Resolve-Path is that it returns nothing for a path that doesn't exist. Is that the correct semantics for this function? |
I've never liked Resolve-Path as it does two things you rarely want to do together (normalize the path AND validate it exists). What's not clear here to me is why you're using Resolve-Path? In fact, I'm not sure what this Get-SshPath command does. There's no help for it, and the result when I run it is the path to a key file. What's the point of that? Anyway, if you need to normalize (make absolute) a path without validating it exists, I've got code that does that. Of course, since this will always be in the file system, it actually should be fairly trivial to implement using System.IO.Path, while my code works even if you've set-location to some other provider. |
I was putting the code back to a state - more or less - before I changed it. However I did change it to not use |
I'm good with removing |
This happens when the specified $File parameter doesn't exist. This is not desired. Update Pester tests to reflect this.
@dahlbyk I'm happy with this. OK if I merge it? |
Of course this requires someone to setup an AppVeyor account - I think.
Not sure what's up with the line endings. On my file system, this file has CRLF at the end of every line.