From f2484b8e4293b0664da1be43c5be900563b3f606 Mon Sep 17 00:00:00 2001 From: Christoph Witzko Date: Wed, 4 Feb 2015 20:14:57 +0100 Subject: [PATCH] test: set npm registry inside .npmrc --- bin/post-test | 2 -- bin/pre-test | 4 ---- tests/.npmrc | 1 + 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/post-test b/bin/post-test index de7f85b6..098c7835 100755 --- a/bin/post-test +++ b/bin/post-test @@ -2,8 +2,6 @@ cat .tmp/sinopia.pid | xargs kill -cat .tmp/registry | xargs npm config set registry - cp .tmp/.npmrc ~/.npmrc rm -rf .tmp diff --git a/bin/pre-test b/bin/pre-test index f6055912..3260ebc8 100755 --- a/bin/pre-test +++ b/bin/pre-test @@ -8,10 +8,6 @@ mkdir -p .tmp/modules sleep 0.5 -npm config get registry >> .tmp/registry - cp ~/.npmrc .tmp/.npmrc cp tests/.npmrc ~/.npmrc - -npm config set registry http://127.0.0.1:4873/ diff --git a/tests/.npmrc b/tests/.npmrc index 555c7b28..1f4e0034 100644 --- a/tests/.npmrc +++ b/tests/.npmrc @@ -1,2 +1,3 @@ _auth=dGVzdDpmb28= email=test@example.com +registry=http://127.0.0.1:4873/