Add UIExplorer to manual testing script.
Summary: Encourage a little more testing coverage and make it a little easier to do. Closes https://github.com/facebook/react-native/pull/13040 Reviewed By: shergin Differential Revision: D4742701 Pulled By: sahrens fbshipit-source-id: 4398c3b737b09c4113e965725585efc038936515
This commit is contained in:
parent
704b662437
commit
a7633afa08
|
@ -36,6 +36,37 @@ rm -rf android
|
|||
|
||||
success "Generated artifacts for Maven"
|
||||
|
||||
npm install
|
||||
|
||||
success "Killing any running packagers"
|
||||
lsof -i :8081 | grep LISTEN
|
||||
lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
|
||||
|
||||
info "Start the packager in another terminal by running 'npm start' from the root"
|
||||
info "and then press any key."
|
||||
info ""
|
||||
read -n 1
|
||||
|
||||
./gradlew :Examples:UIExplorer:android:app:installDebug || error "Couln't build UIExplorer Android"
|
||||
|
||||
info "Press any key to run UIExplorer in an already running Android emulator/device"
|
||||
info ""
|
||||
read -n 1
|
||||
adb shell am start -n com.facebook.react.uiapp/.UIExplorerActivity
|
||||
|
||||
info "Press any key to open the project in Xcode, then build and test manually."
|
||||
info ""
|
||||
read -n 1
|
||||
open "Examples/UIExplorer/UIExplorer.xcodeproj"
|
||||
|
||||
info "When done testing UIExplorer app on iOS and Android press any key to continue."
|
||||
info ""
|
||||
read -n 1
|
||||
|
||||
success "Killing packager"
|
||||
lsof -i :8081 | grep LISTEN
|
||||
lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
|
||||
|
||||
npm pack
|
||||
|
||||
PACKAGE=$(pwd)/react-native-$PACKAGE_VERSION.tgz
|
||||
|
|
Loading…
Reference in New Issue