Updates each target Node version in Travis CI config to latest minor version.
This node module updates your Travis CI config file .travis.yml
ensuring you're always running tests against the latest available minor versions for each of the listed major versions.
npm install -g travisci-node-update
Invoke the travisci-node-update
command on the desired target directory (defaults to .
).
travisci-node-update [target_dir]
At the moment of writing, latest Node versions are 7.3.0
, 6.9.2
, 5.12.0
, and 4.7.0
.
# .travis.yml before
language: node_js
node_js:
- "7.2"
- "6.9"
- "5.12"
- "4.6"
script: npm run test
This will update the versions listed in .travis.yml
to 7.3
and 4.7
, leaving 6.9
and 5.12
untouched:
travisci-node-update .
# .travis.yml after
language: node_js
node_js:
- "7.3"
- "6.9"
- "5.12"
- "4.7"
script: npm run test
Copyright (c) 2017 Claudio Procida