From d028ed9f6caaa1d660514f763037bb2e85cb1b05 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 24 Mar 2017 23:13:18 +0800 Subject: [PATCH] chore: speed up nvm installation on Travis CI You don't need to have the whole commit history of `nvm`, let's speed up the clone process. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6086281d..e4556d1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ os: before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf ~/.nvm; - git clone https://github.com/creationix/nvm.git ~/.nvm; + git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm; source ~/.nvm/nvm.sh; nvm --version; nvm install $NODE_VERSION;