dwyl / learn-travis

:sunglasses: A quick Travis CI (Continuous Integration) Tutorial for Node.js developers
MIT License
1.25k stars 351 forks source link

Which Version of Node.js Should you use in your .travis.yml file? #14

Closed nelsonic closed 6 years ago

nelsonic commented 8 years ago

http://docs.travis-ci.com/user/languages/javascript-with-nodejs/ We should update the readme to reflect the fact that a specific node.js version can be selected for test.

Always use the latest (TLS) version of node.

Tip: if you specify only the major number e.g. v4 travis will automatically use the latest stable.

Fl4m3Ph03n1x commented 7 years ago

IMHO, placing specific versions of node in the travis.yml is a recipe for deprecation. I usually run with the latest version:

language: node_js
node_js:
 - "node"

If you really insist in putting a specific version, you are pretty much saying "I will always keep an eye on this tutorial to update it because every X months node releases a new stable version and in X - Y months this tutorial will be deprecated and may not aid new users" (like the TDD tut where people can't use ECMA 6).

With my suggestion, your tutorial would always be up to date. I am not against keeping an eye and maintaining tutorials, I just think that it is humanly impossible to keep every single tutorial dwyl has up to date and that sooner or later someone will stop caring.

nelsonic commented 7 years ago

Agreed. will be updating this. 👍

rachaelcodes commented 6 years ago

Just as an fyi, a few of us in the current FAC cohort have come unstuck by copying an old node version into their travis.yml - an update would be much clearer. Thanks 😄

nelsonic commented 6 years ago

@rachaelcodes pull requests always welcome! 😉 (apologies for the confusion/frustration ... 😕 )