Travis CI : dont install dependencies unless they are used

This commit is contained in:
Ismail El Korchi 2020-04-16 22:51:18 +01:00
parent a00645e7fc
commit d8eac45712
1 changed files with 2 additions and 2 deletions

View File

@ -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.