Merge pull request #1588 from tadeuzagallo/master
[ReactNative] Use --nonPersistent instead of ignoring node_modules on tests
This commit is contained in:
commit
a10b2e5c51
|
@ -31,6 +31,7 @@ function cleanup {
|
|||
|
||||
rm $MARKER
|
||||
[ $SINOPIA_PID ] && kill -9 $SINOPIA_PID
|
||||
[ $SERVER_PID ] && kill -9 $SERVER_PID
|
||||
[ -f ~/.npmrc.bak ] && mv ~/.npmrc.bak ~/.npmrc
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
@ -67,4 +68,6 @@ ls `basename $MARKER` > /dev/null
|
|||
|
||||
flow --retries 10
|
||||
|
||||
node ./node_modules/react-native/packager/packager.js --nonPersistent &
|
||||
SERVER_PID=$!
|
||||
xctool -scheme EndToEndTest -sdk iphonesimulator test
|
||||
|
|
|
@ -20,9 +20,12 @@ function cleanup {
|
|||
|
||||
[ -f $REACT_PACKAGER_LOG ] && cat $REACT_PACKAGER_LOG
|
||||
fi
|
||||
[ $SERVER_PID ] && kill -9 $SERVER_PID
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
node ./packager/packager.js -- --nonPersistent &
|
||||
SERVER_PID=$!
|
||||
xctool \
|
||||
-project Examples/UIExplorer/UIExplorer.xcodeproj \
|
||||
-scheme UIExplorer -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 5,OS=8.3' \
|
||||
|
|
Loading…
Reference in New Issue