From 80f547ad466a5064ce52ec53a04153f25808927b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 25 Dec 2016 14:12:25 +0100 Subject: [PATCH] Only run linting on Node.js 4.x and up --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5cba325d..92e36289 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,8 @@ before_script: - npm prune - git version script: -- npm run lint +# Only run linting on Node.js 4.x and up +- if [ $(node -pe 'process.version.match(/v(\d+)\./)[1] >= 4') == 'true' ]; then npm run lint; fi - npm run test - npm run check-coverage after_success: