From 2512b7e08ac752092962640bcba67f2ef3cd04ae Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 25 Jan 2020 23:59:31 -0800 Subject: [PATCH] [Tests] only run the linter once, not on every build --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cd5650c65a..57d792f1c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,8 @@ env: # osx backlog is often deep, so to be polite we can just hit these highlights matrix: include: + - env: LINT=true + node_js: lts/* - env: PACKAGE=resolvers/node node_js: 13 - env: PACKAGE=resolvers/node @@ -81,7 +83,7 @@ install: - 'if [ -n "${ESLINT_VERSION}" ]; then ./tests/dep-time-travel.sh; fi' script: - - 'npm test' + - 'if [ -n "${LINT-}" ]; then npm run posttest ; else npm run mocha tests/src ; fi' after_success: - npm run coveralls