diff --git a/scripts/e2e-test-lego.sh b/scripts/e2e-test-lego.sh index dfc24c24a2..dc25e34f9a 100755 --- a/scripts/e2e-test-lego.sh +++ b/scripts/e2e-test-lego.sh @@ -55,18 +55,24 @@ 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 -# Temporarily installing sinopia from a github fork -# TODO t10060166 use npm repo when bug is fixed which sinopia || ${NPM_PATH}npm install -g sinopia # but in order to make npm use sinopia we temporarily # replace its config file [ -f ~/.npmrc ] && cp ~/.npmrc ~/.npmrc.bak + +# Point npm to Sinopia (localhost) cp $SCRIPTS/e2e-npmrc ~/.npmrc -sinopia --config $SCRIPTS/e2e-sinopia.config.yml & +echo "======== npm config ========" +${NPM_PATH}npm config list +echo "======== ======== ========" + +${SINOPIA_PATH}sinopia --config $SCRIPTS/e2e-sinopia.config.yml & SINOPIA_PID=$! +echo "=========== Sinopia is running, pid ${SINOPIA_PID}" + # Make sure to remove old version of react-native in # case it was cached ${NPM_PATH}npm unpublish react-native --force