From 7d0df0d974a40d14cff2347f80674eed89da3ed0 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Mon, 27 May 2019 12:48:42 +0300 Subject: [PATCH] Travis: don't duplicate testing on Node's latest LTS (#1915) --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4b2431b85f..20844c8012 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,16 @@ node_js: - '8' - '6' -script: npm run testonly +script: | + if [[ "$(node -pe process.version)" == v10.* ]]; then # Is latest LTS? + npm run test:ci && + bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json + else + npm run testonly + fi jobs: include: - - node_js: 'lts/*' - script: npm run test:ci && bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json - stage: deploy if: branch = master OR tag IS present script: echo "Deploying..."