From 73b2b27b0fe6925c028aa622312df77add911612 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 29 Jun 2020 08:07:06 +0200 Subject: [PATCH] Move nvm+npm to trash instead of deleting to speed up --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bcbc69e2..c2aff1d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,9 +76,10 @@ jobs: name: Merge build folders into project (merge with hardlinks) command: cp --recursive --link /tmp/builds/* . - run: - # The images ubuntu-1604:201903-01 comes with preinstalled nvm, which does not work well with non-login shells + # The images ubuntu-1604 comes with preinstalled nvm, which does not work well with non-login shells name: Uninstall nvm - command: rm -rf "$NVM_DIR" ~/.npm ~/.bower + # Moving to trash is faster than deleting (gvfs-trash is not installed on this image) + command: mkdir -p ~/.local/share/Trash && mv "$NVM_DIR" ~/.npm ~/.local/share/Trash - run: name: Install nodejs command: | @@ -160,9 +161,10 @@ jobs: name: Merge build folders into project (merge with hardlinks) command: cp --recursive --link /tmp/builds/* . - run: - # The images ubuntu-1604:201903-01 comes with preinstalled nvm, which does not work well with non-login shells + # The images ubuntu-1604 comes with preinstalled nvm, which does not work well with non-login shells name: Uninstall nvm - command: rm -rf "$NVM_DIR" ~/.npm ~/.bower + # Moving to trash is faster than deleting (gvfs-trash is not installed on this image) + command: mkdir -p ~/.local/share/Trash && mv "$NVM_DIR" ~/.npm ~/.local/share/Trash - run: name: Install nodejs command: | @@ -238,9 +240,10 @@ jobs: name: Merge build folders into project (merge with hardlinks) command: cp --recursive --link /tmp/builds/* . - run: - # The images ubuntu-1604:201903-01 comes with preinstalled nvm, which does not work well with non-login shells + # The images ubuntu-1604 comes with preinstalled nvm, which does not work well with non-login shells name: Uninstall nvm - command: rm -rf "$NVM_DIR" ~/.npm ~/.bower + # Moving to trash is faster than deleting (gvfs-trash is not installed on this image) + command: mkdir -p ~/.local/share/Trash && mv "$NVM_DIR" ~/.npm ~/.local/share/Trash - run: name: Install nodejs command: |