forked from mirror/_s
Merge pull request #1410 from Ismail-elkorchi/optimize-travis
Travis CI : don't install dependencies unless they are used
This commit is contained in:
commit
faac8fa287
|
@ -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.
|
||||||
|
|
Reference in New Issue