Skip to content

Commit

Permalink
ci: speed up test minikube job
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 authored and edvald committed Aug 22, 2019
1 parent 4693f13 commit d2f5c8b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,19 @@ jobs:
steps:
- checkout
- run:
name: Install Node.js
# First we remove system node and npm to ensure they're not used in later 'run' steps
name: Update Node.js
command: |
rm -rf $(which node)
rm -rf $(which npm)
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get -y install nodejs
# NVM is already installed, we just need to load it...
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# ...export for subsequent runs...
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
nvm install 10
nvm alias default 10
nvm use default
# ...and finally symlink for when calling Garden with sudo below
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"
- npm_install
- run: npm run build
- run:
Expand Down Expand Up @@ -420,6 +426,8 @@ workflows:
requires:
- build-dist-edge
- test-dist
- test-minikube:
<<: *only-master

tags:
jobs:
Expand Down Expand Up @@ -453,4 +461,6 @@ workflows:
<<: *only-tags
requires:
- build-dist
- test-dist
- test-dist
- test-minikube:
<<: *only-tags

0 comments on commit d2f5c8b

Please sign in to comment.