From 3b0986f88f79ee07c2eab15bd0bb296482e99d91 Mon Sep 17 00:00:00 2001 From: James K Nelson Date: Sun, 16 Dec 2018 16:10:41 +0900 Subject: [PATCH 1/2] fix e2e:docker issue --- tasks/local-test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/local-test.sh b/tasks/local-test.sh index 43a74ae0ec5..e28c9257de5 100755 --- a/tasks/local-test.sh +++ b/tasks/local-test.sh @@ -88,7 +88,7 @@ if [ ${git_branch} != ${current_git_branch} ]; then fi read -r -d '' command <<- CMD -echo "prefix=~/.npm" > ~/.npmrc +touch ~/.npmrc mkdir ~/.npm export PATH=\$PATH:~/.npm/bin set -x @@ -105,6 +105,7 @@ CMD docker run \ --env CI=true \ --env NPM_CONFIG_QUIET=true \ + --env NPM_CONFIG_PREFIX=/home/node/.npm \ --tty \ --user node \ --volume ${PWD}/..:/var/create-react-app \ From ed78680f1c978d7f72535e857259a7fb38f15682 Mon Sep 17 00:00:00 2001 From: James K Nelson Date: Sun, 16 Dec 2018 16:36:38 +0900 Subject: [PATCH 2/2] fix e2e tests --- tasks/local-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/local-test.sh b/tasks/local-test.sh index e28c9257de5..48c53d5326a 100755 --- a/tasks/local-test.sh +++ b/tasks/local-test.sh @@ -88,7 +88,7 @@ if [ ${git_branch} != ${current_git_branch} ]; then fi read -r -d '' command <<- CMD -touch ~/.npmrc +echo "prefix=~/.npm" > ~/.npmrc mkdir ~/.npm export PATH=\$PATH:~/.npm/bin set -x @@ -104,8 +104,8 @@ CMD docker run \ --env CI=true \ - --env NPM_CONFIG_QUIET=true \ --env NPM_CONFIG_PREFIX=/home/node/.npm \ + --env NPM_CONFIG_QUIET=true \ --tty \ --user node \ --volume ${PWD}/..:/var/create-react-app \