travisci-node-update

1.0.0 • Public • Published

travisci-node-update

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.

Install

npm install -g travisci-node-update

Usage

Invoke the travisci-node-update command on the desired target directory (defaults to .).

travisci-node-update [target_dir]

Example

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

License

MIT

Copyright (c) 2017 Claudio Procida

Package Sidebar

Install

npm i travisci-node-update

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • claudiopro