From a414befa255e611bce03b14b243dc39a769a2a20 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 12 Sep 2016 11:54:16 -0700 Subject: [PATCH] Lint using newer node version on CI --- .travis.yml | 5 +++++ package.json | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bd38d197f..7b92cf25b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,3 +16,8 @@ cache: branches: only: - master +before_script: + - nvm install stable + - npm run lint + - nvm use $TRAVIS_NODE_VERSION + - npm run unit-tests diff --git a/package.json b/package.json index cb40ccac8..178f72a81 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ }, "scripts": { "prepublish": "babel --out-dir build lib", - "test": "tape -r babel-register test/*.js && eslint lib test" + "lint": "eslint lib test", + "unit-tests": "tape -r babel-register test/*.js", + "test": "npm run unit-tests && npm run lint" }, "repository": { "type": "git",