Skip to content

Commit

Permalink
Configure Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Mar 2, 2018
1 parent 540f9c2 commit 9458f4b
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
language: node_js
sudo: false
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
# https://github.com/nodejs/LTS
- "4" # ends April 2018
- "6" # ends April 2019
- "8" # ends December 2019

sudo: false

cache:
directories:
- node_modules

before_install:
- npm i -g npm
- npm install coveralls

before_script:
# Make npm run work for the script phase:
- if [ "x$TRAVIS_NODE_VERSION" != "x8" ]; then npm config set ignore-scripts false; fi
# these build targets only need to run once per build, so let's conserve a few resources
# ESLint only supports Node >=4
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run lint; fi

script:
- npm test

after_success:
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run test-coverage && cat ./coverage/lcov.info | coveralls lib; fi

git:
depth: 10

0 comments on commit 9458f4b

Please sign in to comment.