From 58b0a4c8f4c28bfe57b276e37b81607289032c30 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Mon, 31 Dec 2018 16:16:34 -0500 Subject: [PATCH 1/5] Dont use sudo to install truffle --- test/e2e/beta/run-drizzle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index 609f2765e..6e4602d00 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -7,7 +7,7 @@ sleep 5 cd test/e2e/beta/ rm -rf drizzle-test mkdir drizzle-test && cd drizzle-test -sudo npm install -g truffle +npm install -g truffle truffle unbox drizzle echo "Deploying contracts for Drizzle test..." truffle compile && truffle migrate From 3a75571da2ed8d8623c35a346179264e5232bb0b Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Wed, 2 Jan 2019 16:18:24 -0500 Subject: [PATCH 2/5] --unsafe-perm ? --- test/e2e/beta/run-drizzle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index 6e4602d00..7f474b418 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -7,7 +7,7 @@ sleep 5 cd test/e2e/beta/ rm -rf drizzle-test mkdir drizzle-test && cd drizzle-test -npm install -g truffle +sudo npm install --unsafe-perm -g truffle truffle unbox drizzle echo "Deploying contracts for Drizzle test..." truffle compile && truffle migrate From d504c075d55fa8d1009b1f5622294fcdd7514c38 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Wed, 2 Jan 2019 16:29:33 -0500 Subject: [PATCH 3/5] Use sudo consistently --- test/e2e/beta/run-drizzle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index 7f474b418..bac57a098 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -8,9 +8,9 @@ cd test/e2e/beta/ rm -rf drizzle-test mkdir drizzle-test && cd drizzle-test sudo npm install --unsafe-perm -g truffle -truffle unbox drizzle +sudo truffle unbox drizzle echo "Deploying contracts for Drizzle test..." -truffle compile && truffle migrate +sudo truffle compile && sudo truffle migrate BROWSER=none npm start >> /dev/null 2>&1 & cd ../../../../ mocha test/e2e/beta/drizzle.spec From 3112d5b5c0e305ef02cf78d40ade2a1f650ad569 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Wed, 2 Jan 2019 17:17:44 -0500 Subject: [PATCH 4/5] no globals --- test/e2e/beta/run-drizzle.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index bac57a098..a16c795a6 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -7,10 +7,10 @@ sleep 5 cd test/e2e/beta/ rm -rf drizzle-test mkdir drizzle-test && cd drizzle-test -sudo npm install --unsafe-perm -g truffle -sudo truffle unbox drizzle +npm install --unsafe-perm truffle +../../../../node_modules/.bin/truffle unbox drizzle echo "Deploying contracts for Drizzle test..." -sudo truffle compile && sudo truffle migrate +../../../../node_modules/.bin/truffle compile && ../../../../node_modules/.bin/truffle migrate BROWSER=none npm start >> /dev/null 2>&1 & cd ../../../../ mocha test/e2e/beta/drizzle.spec From c349bbdece7138cda2329271b1fd254c51963117 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Wed, 2 Jan 2019 17:28:26 -0500 Subject: [PATCH 5/5] remove --unsafe-perm --- test/e2e/beta/run-drizzle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index a16c795a6..09b903afb 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -7,7 +7,7 @@ sleep 5 cd test/e2e/beta/ rm -rf drizzle-test mkdir drizzle-test && cd drizzle-test -npm install --unsafe-perm truffle +npm install truffle ../../../../node_modules/.bin/truffle unbox drizzle echo "Deploying contracts for Drizzle test..." ../../../../node_modules/.bin/truffle compile && ../../../../node_modules/.bin/truffle migrate