From 897ec90778dfed17e92aa0dd6c38de9b20ab872c Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Wed, 16 Mar 2016 10:26:58 -0700 Subject: [PATCH] Tweak e2e test Reviewed By: mkonicek Differential Revision:D3059079 Ninja: oss only fb-gh-sync-id: 12008d9771888e9dfa4f3b8ac94d6e46f0a542ae shipit-source-id: 12008d9771888e9dfa4f3b8ac94d6e46f0a542ae --- scripts/e2e-test-lego.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/e2e-test-lego.sh b/scripts/e2e-test-lego.sh index 9c2d7553a3..f29538a2be 100755 --- a/scripts/e2e-test-lego.sh +++ b/scripts/e2e-test-lego.sh @@ -50,8 +50,6 @@ function cleanup { } trap cleanup EXIT -cd $TEMP - # sinopia is npm registry proxy, it is used to make npm # think react-native and react-native-cli are actually # published on npm @@ -66,13 +64,28 @@ cp $SCRIPTS/e2e-npmrc ~/.npmrc echo "======== npm config ========" ${NPM_PATH}npm config list +${NPM_PATH}npm config get registry +${NPM_PATH}npm config get email echo "======== ======== ========" +echo "======== sinopia proxy ===========" +echo ===HTTP_PROXY; echo $HTTP_PROXY +echo ===HTTPS_PROXY; echo $HTTPS_PROXY + ${NPM_PATH}node ${SINOPIA_PATH}sinopia --config $SCRIPTS/e2e-sinopia-lego.config.yml & SINOPIA_PID=$! +echo "=========== Sleeping 10s" +sleep 10 + echo "=========== Sinopia is running, pid ${SINOPIA_PID}" +echo ===localhost; nc -z localhost 4873; echo $? +echo ===listening on 4873; lsof -i :4873 +echo ===node listening on port; lsof -i | grep node + +echo ====host_dns; host localhost + # Make sure to remove old version of react-native in # case it was cached ${NPM_PATH}npm unpublish react-native --force @@ -81,6 +94,8 @@ ${NPM_PATH}npm publish $ROOT ${NPM_PATH}npm publish $ROOT/react-native-cli ${NPM_PATH}npm install -g react-native-cli + +cd $TEMP react-native init EndToEndTest cd EndToEndTest