File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ function cleanup {
3131
3232 rm $MARKER
3333 [ $SINOPIA_PID ] && kill -9 $SINOPIA_PID
34+ [ $SERVER_PID ] && kill -9 $SERVER_PID
3435 [ -f ~ /.npmrc.bak ] && mv ~ /.npmrc.bak ~ /.npmrc
3536}
3637trap cleanup EXIT
@@ -67,4 +68,6 @@ ls `basename $MARKER` > /dev/null
6768
6869flow --retries 10
6970
71+ node ./node_modules/react-native/packager/packager.js --nonPersistent &
72+ SERVER_PID=$!
7073xctool -scheme EndToEndTest -sdk iphonesimulator test
Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ function cleanup {
2020
2121 [ -f $REACT_PACKAGER_LOG ] && cat $REACT_PACKAGER_LOG
2222 fi
23+ [ $SERVER_PID ] && kill -9 $SERVER_PID
2324}
2425trap cleanup EXIT
2526
27+ node ./packager/packager.js -- --nonPersistent &
28+ SERVER_PID=$!
2629xctool \
2730 -project Examples/UIExplorer/UIExplorer.xcodeproj \
2831 -scheme UIExplorer -sdk iphonesimulator -destination ' platform=iOS Simulator,name=iPhone 5,OS=8.3' \
You can’t perform that action at this time.
0 commit comments