From d8eac45712d96fa5afd9d6a28a052c4df5a165b9 Mon Sep 17 00:00:00 2001 From: Ismail El Korchi Date: Thu, 16 Apr 2020 22:51:18 +0100 Subject: [PATCH] Travis CI : dont install dependencies unless they are used --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1a543fb..2a7a556d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,11 +41,11 @@ before_install: # Speed up build time by disabling Xdebug. - phpenv config-rm xdebug.ini || echo 'No xdebug config.' # Download and install the latest long-term support release of node. - - nvm install --lts + - if [[ "$SNIFF" == 1 ]]; then nvm install --lts; fi # Install Composer dependencies. - composer install # Install NPM dependencies. - - npm install + - if [[ "$SNIFF" == 1 ]]; then npm install; fi script: # Validate the composer.json file.