Skip to content

Instantly share code, notes, and snippets.

@andykais
Created July 5, 2018 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andykais/146de7b6c81731c2fbc17a63a9fcbe96 to your computer and use it in GitHub Desktop.
Save andykais/146de7b6c81731c2fbc17a63a9fcbe96 to your computer and use it in GitHub Desktop.
travis config to test against multiple node versions but lint only once
language: node_js
stages:
- test
- lint
cache:
directories:
- $HOME/.npm
jobs:
include:
- stage: test
node_js: "10"
script: npm run test:unit
- stage: test
node_js: "9"
script: npm run test:unit
- stage: test
node_js: "8"
script: npm run test:unit
- stage: lint
node_js: "10"
script: npm run lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment