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
Fails to detect Node 0.10 in .travis.yml #977
Comments
Well, for what it's worth, it's not a supported version yet http://about.travis-ci.org/docs/user/ci-environment/#Node.js-versions I was bellyaching this morning because I couldn't get a module to build against 0.9.12 :S |
@naomik, while that is true, the error is in detecting the version number. It's being detected as 0.1, not 0.10. |
Just looked through the code, and our YAML parser indeed has issues parsing the two decimals. Looking into it. |
@roidrage Can you point me in the right direction for that? I'll take a stab at fixing it. |
No worries, this is an issue with the underlying YAML parser :) |
Oh, screw that then. :) 👍 |
Seems like dtao/safe_yaml#26 should fix the issue. Trying it out. |
@roidrage So it appears that the YAML parser is correct. 0.10 as a number is 0.1. It strips the trailing 0 because, well, that's how numbers work. Versions aren't numbers and can't be treated as such, so the documentation should be updated to reflect that and not recommend using numbers anymore. :) I double checked, and it doesn't recommend numbers for Python. It seems that node.js was the oddball out. http://about.travis-ci.org/docs/user/languages/javascript-with-nodejs/ |
The issue is more that this happens with other languages as well, e.g. Perl 5.10 vs. 5.1. An earlier version of the YAML parser we used was able to make that distinction, so it's good you've brought it up. One possible workaround is to just put the number in as a string: node_js:
- "0.10" Not great, but might be a valid temporary workaround. |
Yep, and I did that and it worked fine (aside from the fact that there is no 0.10 binary yet). All around, I'd just recommend using numbers for versions. :) |
Don't you mean recommend using strings for versions? |
Do we have any idea when the |
naomik: we're working on it. cc @joshk :) |
@naomik Yes. I'm bad at typing. |
Seems to be working now. It even picks up |
Remember to use quotes, otherwise the version is interpreted as a float, and 0.10 is just 0.1 On 14/03/2013, at 9:54 AM, Marek Kubica notifications@github.com wrote:
|
I'm still having the same issue. Is this supposed to be working now? |
@MiguelMadero This should indeed be working. Are you listing the node version as If this is not the issue, could you please link us to the build you're seeing the issue on? |
I'm using quotes as mentioned on the thread. I tried You can see builds number 3, 5, 6 and 7 of Thanks, Miguel On Sat, Apr 27, 2013 at 12:13 AM, Henrik Hodne notifications@github.comwrote:
|
@MiguelMadero There's a tab in your .travis.yml (in the line that says "0.10") which makes it illegal YAML and makes Travis ignore your build settings. |
Wow, that's odd, I didn't know YAML was so picky. And I didn't realized the Anyway, it's working now (geddy build 9.1 uses node Miguel On Sat, Apr 27, 2013 at 10:27 AM, Mathias Meyer notifications@github.comwrote:
|
https://github.com/mattrobenolt/raven-node/blob/master/.travis.yml
Gets picked up as 0.1
See: https://travis-ci.org/mattrobenolt/raven-node/jobs/5415175
The text was updated successfully, but these errors were encountered: