mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-20 02:18:26 +00:00
Update test script to always use nvm if possible
This commit is contained in:
parent
600a8909d3
commit
d81ce5c49a
@ -68,6 +68,12 @@ unlock_device() {
|
|||||||
cleanup
|
cleanup
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
# Use a consistent version of Node if possible.
|
||||||
|
if [ -s "${HOME}/.nvm/nvm.sh" ]; then
|
||||||
|
. "${HOME}/.nvm/nvm.sh"
|
||||||
|
nvm use 5.4.0 || true
|
||||||
|
fi
|
||||||
|
|
||||||
case "$TARGET" in
|
case "$TARGET" in
|
||||||
"jsdoc")
|
"jsdoc")
|
||||||
npm run jsdoc
|
npm run jsdoc
|
||||||
@ -108,9 +114,6 @@ case "$TARGET" in
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -s "${HOME}/.nvm/nvm.sh" ] && . "${HOME}/.nvm/nvm.sh"
|
|
||||||
nvm use 5.4.0 || true
|
|
||||||
|
|
||||||
pushd react-native/android
|
pushd react-native/android
|
||||||
./gradlew installarchives
|
./gradlew installarchives
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user