Skip to content

Commit

Permalink
Update NVM testing to be more robust (#331)
Browse files Browse the repository at this point in the history
* Update NVM testing to be more robust

* Testing

* Get rid of debugging for nvm existence
  • Loading branch information
sven-oly authored Oct 29, 2024
1 parent 6e14027 commit 86774f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generateDataAndRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ fi
# Enable seting the version of NodeJS
# Install NVM if it is not install in CI

export NVM_DIR=$HOME/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

if [[ $CI == "true" ]] && ! [ -x "$(command -v nvm)" ]
then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
export NVM_DIR="$HOME/.config/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
else
export NVM_DIR=$HOME/.nvm
fi

source $NVM_DIR/nvm.sh;

##########
# Regenerate test data and verify against schema
##########
Expand Down

0 comments on commit 86774f2

Please sign in to comment.