From 40732f72244ba193e4cd222129790c8ffbfe19fa Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Wed, 16 Mar 2016 08:20:01 -0700 Subject: [PATCH] Tweak e2e test script Reviewed By: mkonicek Differential Revision:D3058646 Ninja: oss only fb-gh-sync-id: a307428b403c27bee492c04f28d27f1574dbc6d8 shipit-source-id: a307428b403c27bee492c04f28d27f1574dbc6d8 --- scripts/e2e-sinopia-lego.config.yml | 23 +++++++++++++++++++++++ scripts/e2e-test-lego.sh | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 scripts/e2e-sinopia-lego.config.yml diff --git a/scripts/e2e-sinopia-lego.config.yml b/scripts/e2e-sinopia-lego.config.yml new file mode 100644 index 000000000..ebf99e001 --- /dev/null +++ b/scripts/e2e-sinopia-lego.config.yml @@ -0,0 +1,23 @@ +storage: /tmp/sinopia-package-cache + +uplinks: + npmjs: + url: http://registry.npmjs.org/ + +packages: + 'react-native': + allow_access: $all + allow_publish: $all + + 'react-native-cli': + allow_access: $all + allow_publish: $all + + '*': + allow_access: $all + proxy: npmjs + +logs: + - {type: file, path: sinopia.log, format: pretty, level: http} + +max_body_size: '50mb' \ No newline at end of file diff --git a/scripts/e2e-test-lego.sh b/scripts/e2e-test-lego.sh index dc25e34f9..9c2d7553a 100755 --- a/scripts/e2e-test-lego.sh +++ b/scripts/e2e-test-lego.sh @@ -68,7 +68,7 @@ echo "======== npm config ========" ${NPM_PATH}npm config list echo "======== ======== ========" -${SINOPIA_PATH}sinopia --config $SCRIPTS/e2e-sinopia.config.yml & +${NPM_PATH}node ${SINOPIA_PATH}sinopia --config $SCRIPTS/e2e-sinopia-lego.config.yml & SINOPIA_PID=$! echo "=========== Sinopia is running, pid ${SINOPIA_PID}"