mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Added e2e tests for npm@2 and npm@3
Summary:Need to make sure we can use both versions of npm client for publishing and installing **Test plan (required)** Make sure tests pass on both Travis and Circle CI. Closes https://github.com/facebook/react-native/pull/6364 Differential Revision: D3036537 fb-gh-sync-id: a3c1ea16f0aeb7b1327574b511aac7594fd3d7e6 shipit-source-id: a3c1ea16f0aeb7b1327574b511aac7594fd3d7e6
This commit is contained in:
committed by
Facebook Github Bot 2
parent
cbae5c972a
commit
a611ec5f23
@@ -10,7 +10,7 @@ set -e
|
||||
set -x
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Please run the script with --ios, --android or --packager"
|
||||
echo "Please run the script with --ios, --android or --packager" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -68,6 +68,7 @@ SINOPIA_PID=$!
|
||||
|
||||
# Make sure to remove old version of react-native in
|
||||
# case it was cached
|
||||
npm cache clear
|
||||
npm unpublish react-native --force
|
||||
npm unpublish react-native-cli --force
|
||||
npm publish $ROOT
|
||||
@@ -101,9 +102,11 @@ case $1 in
|
||||
../node_modules/react-native/packager/packager.sh --nonPersistent &
|
||||
SERVER_PID=$!
|
||||
# TODO Start the app and check it renders "Welcome to React Native"
|
||||
echo "The Android e2e test is not implemented yet"
|
||||
echo "The Android e2e test is not implemented yet" >&2
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Please run the script with --ios, --android or --packager"
|
||||
echo "Please run the script with --ios, --android or --packager" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user