From 4c75efb2da67c83a426d57aaa629ddb0874d45cf Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Wed, 28 Oct 2020 07:56:12 -0400 Subject: [PATCH] Limit eslint on travis to newer nodes --- .travis.yml | 12 +++++++++--- package.json | 7 ++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9de2f5..1c62ac6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,18 @@ node_js: - "15" script: - case "$TRAVIS_NODE_VERSION" in - 4|5.6.0|5) + 4|5.6.0) tap test/node-version-test.js ;; *) - npm run test - npm run lint + npm run tap + ;; + esac + - case "$TRAVIS_NODE_VERSION" in + 4|5.6.0|5|6|8) + ;; + *) + npm run eslint npm run bench ;; esac diff --git a/package.json b/package.json index 19ab4e6..91a9dfc 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "main": "v8-compile-cache.js", "scripts": { "bench": "bench/run.sh", - "lint": "eslint --max-warnings=0 .", - "test": "tap test/*-test.js", - "posttest": "npm run lint" + "eslint": "eslint --max-warnings=0 .", + "tap": "tap test/*-test.js", + "test": "npm run tap", + "posttest": "npm run eslint" }, "author": "Andres Suarez ", "repository": {