From 062254ba5232b7611ce74157b66d7e02b9679a18 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Tue, 10 Sep 2019 13:07:09 -0700 Subject: [PATCH 1/2] configure local redis in build.sh --- .kokoro/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index c9ddc6a6..c78e7c71 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -38,6 +38,9 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json # Setup project id. export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json") +# Configure Local Redis to be used +export REDIS_CACHE_URL=redis://localhost + # Find out if this package was modified. # Temporarily use Thea's fork of ci-diff-helper w/ Kokoro support. # python3.6 -m pip install --quiet git+https://github.com/theacodes/ci-diff-helper.git From bd0cc1411a44dec33a83fb3d81ccaf76b1dcba08 Mon Sep 17 00:00:00 2001 From: Chris Wilcox Date: Mon, 16 Sep 2019 10:44:05 -0700 Subject: [PATCH 2/2] start redis-server --- .kokoro/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 2e47210c..720bfc4d 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -42,7 +42,7 @@ export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json") # Configure Local Redis to be used export REDIS_CACHE_URL=redis://localhost - +redis-server & # Some system tests require indexes. Use gcloud to create them. gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS --project=$PROJECT_ID