Skip building Android module for iOS tests
This commit is contained in:
parent
291cd98701
commit
69f0241adb
|
@ -14,6 +14,6 @@
|
|||
],
|
||||
"scripts": {
|
||||
"test": "scripts/test.sh",
|
||||
"prepublish": "rm -rf android && cd react-native/android && ./gradlew publishAndroid"
|
||||
"prepublish": "scripts/prepublish.sh"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ -n "$SKIP_ANDROID_BUILD" ]; then
|
||||
echo 'Skipped building Android module'
|
||||
else
|
||||
rm -rf android
|
||||
(cd react-native/android && ./gradlew publishAndroid)
|
||||
fi
|
|
@ -20,7 +20,11 @@ if [[ $TARGET != *-android ]]; then
|
|||
# CoreSimulatorService doesn't exit when sent SIGTERM
|
||||
pkill -9 Simulator 2>/dev/null || true
|
||||
done
|
||||
|
||||
DESTINATION="-destination id=$(xcrun simctl list devices | grep -v unavailable | grep -m 1 -o '[0-9A-F\-]\{36\}')"
|
||||
|
||||
# Inform the prepublish script to skip building Android modules.
|
||||
export SKIP_ANDROID_BUILD=1
|
||||
fi
|
||||
|
||||
PACKAGER_OUT="$SRCROOT/packager_out.txt"
|
||||
|
|
Loading…
Reference in New Issue