Update test script to npm install root modules

This commit is contained in:
Scott Kyle 2016-03-16 17:49:20 -07:00
parent f723c7b303
commit f5039faf40

View File

@ -77,12 +77,13 @@ fi
case "$TARGET" in case "$TARGET" in
"eslint") "eslint")
[[ $CONFIGURATION == 'Debug' ]] && exit 0
npm install
npm run lint . npm run lint .
;; ;;
"jsdoc") "jsdoc")
if [[ $CONFIGURATION == 'Debug' ]]; then [[ $CONFIGURATION == 'Debug' ]] && exit 0
exit 0 npm install
fi
npm run jsdoc npm run jsdoc
;; ;;
"realmjs") "realmjs")
@ -117,9 +118,7 @@ case "$TARGET" in
xcodebuild -scheme ReactExample -configuration "$CONFIGURATION" -sdk iphonesimulator $DESTINATION build test xcodebuild -scheme ReactExample -configuration "$CONFIGURATION" -sdk iphonesimulator $DESTINATION build test
;; ;;
"react-tests-android") "react-tests-android")
if [[ $CONFIGURATION == 'Debug' ]]; then [[ $CONFIGURATION == 'Debug' ]] && exit 0
exit 0
fi
pushd tests/react-test-app pushd tests/react-test-app