don't run debug for androi since it isn't hooked up

This commit is contained in:
Ari Lazier 2016-02-08 11:16:18 -08:00
parent 1c1b2ec4ab
commit c5a7e4ac30
1 changed files with 7 additions and 5 deletions

View File

@ -33,10 +33,6 @@ cleanup() {
rm -f "$PACKAGER_OUT" "$LOGCAT_OUT" rm -f "$PACKAGER_OUT" "$LOGCAT_OUT"
} }
have() {
type "$@" >/dev/null 2>&1
}
open_chrome() { open_chrome() {
local dir local dir
for dir in "$HOME/Applications" "/Applications"; do for dir in "$HOME/Applications" "/Applications"; do
@ -100,8 +96,14 @@ case "$TARGET" in
xcodebuild -scheme ReactExample -configuration "$CONFIGURATION" -sdk iphonesimulator build $DESTINATION xcodebuild -scheme ReactExample -configuration "$CONFIGURATION" -sdk iphonesimulator build $DESTINATION
;; ;;
"react-tests-android") "react-tests-android")
if [[ $CONFIGURATION == 'Debug' ]]; then
exit 0;
fi
[ -s "${HOME}/.nvm/nvm.sh" ] && . "${HOME}/.nvm/nvm.sh" [ -s "${HOME}/.nvm/nvm.sh" ] && . "${HOME}/.nvm/nvm.sh"
have nvm && nvm use 5.4.0 if [[ $TARGET != *-android ]]; then
type npm >/dev/null 2>&1 && nvm use 5.4.0
fi
pushd react-native/android pushd react-native/android
./gradlew installarchives ./gradlew installarchives