Merge pull request #1410 from Ismail-elkorchi/optimize-travis

Travis CI : don't install dependencies unless they are used
This commit is contained in:
Ismail El Korchi 2020-04-16 23:09:41 +01:00 committed by GitHub
commit faac8fa287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,11 +41,11 @@ before_install:
# Speed up build time by disabling Xdebug. # Speed up build time by disabling Xdebug.
- phpenv config-rm xdebug.ini || echo 'No xdebug config.' - phpenv config-rm xdebug.ini || echo 'No xdebug config.'
# Download and install the latest long-term support release of node. # 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. # Install Composer dependencies.
- composer install - composer install
# Install NPM dependencies. # Install NPM dependencies.
- npm install - if [[ "$SNIFF" == 1 ]]; then npm install; fi
script: script:
# Validate the composer.json file. # Validate the composer.json file.