From f44cedbaa75a9e4c9fef43bce55f425771870c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Wed, 4 Feb 2015 18:58:37 +0100 Subject: [PATCH] text: expose correct registry to environment --- bin/pre-test | 4 +++- tests/scenarios/prepublish.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/pre-test b/bin/pre-test index 39e233b7..f6055912 100755 --- a/bin/pre-test +++ b/bin/pre-test @@ -1,5 +1,7 @@ #!/bin/sh +set -e + mkdir -p .tmp/modules ./node_modules/.bin/sinopia ./tests/config.yml & echo $! >> .tmp/sinopia.pid @@ -12,4 +14,4 @@ cp ~/.npmrc .tmp/.npmrc cp tests/.npmrc ~/.npmrc -npm config set registry http://localhost:4873/ +npm config set registry http://127.0.0.1:4873/ diff --git a/tests/scenarios/prepublish.js b/tests/scenarios/prepublish.js index 625be3f9..3f34cd37 100644 --- a/tests/scenarios/prepublish.js +++ b/tests/scenarios/prepublish.js @@ -23,6 +23,7 @@ module.exports = function (test, createModule) { nixt() .cwd(cwd) .env('CI', true) + .env('npm_config_registry', 'http://127.0.0.1:4873/') .exec('git commit --allow-empty -m "' + message + '"') .run('npm run prepublish') .code(code)