Skip to content

Latest commit

 

History

History
102 lines (82 loc) · 977 Bytes

travis.md

File metadata and controls

102 lines (82 loc) · 977 Bytes

Enforces the correct versions in .travis.yml

Enforces the correct versions to be tested depending on the engines field in package.json.

Fail

No engines field

{
  "name": "foo"
}

Unsupported versions

{
  "name": "foo",
  "engines": {
    "node": ">=4"
  }
}
language: node_js
node_js:
  - '6'
  - '4'
  - '0.12'

Untested versions

{
  "name": "travis",
  "engines": {
    "node": ">=0.10"
  }
}
language: node_js
node_js:
  - '6'
  - '4'

Deprecated versions

language: node_js
node_js:
  - 'stable'
  - 'iojs'

Pass

{
  "name": "travis",
  "engines": {
    "node": ">=0.10"
  }
}
language: node_js
node_js:
  - '6'
  - '4'
  - '0.12'
  - '0.10'

Testing matrix

{
  "name": "travis",
  "engines": {
    "node": ">=4"
  }
}
language: node_js
node_js:
  - '6'
matrix:
  include:
    - node_js: '4'
			env: FOO='bar'