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: