From 23d7ef4d971bf13e2ce87cf8cec8e1b1fbd35dae Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 11 May 2020 16:16:58 +0300 Subject: [PATCH] Update travis script to use npm ci as well --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e2b4f6737..2222a630f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,10 @@ group: travis_latest language: python -cache: pip +cache: + - pip + directories: + - "$HOME/.npm" python: - 3.7 @@ -59,7 +62,7 @@ script: # Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors. - cd monkey_island/cc/ui -- npm i +- npm ci # See https://docs.npmjs.com/cli/ci.html - eslint ./src --quiet # Test for errors - JS_WARNINGS_AMOUNT_UPPER_LIMIT=490 - eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings