From 6f27c800533fa4a657126ae955e9d43468426e08 Mon Sep 17 00:00:00 2001 From: Xuewei Zhang Date: Fri, 6 Dec 2019 22:09:00 -0800 Subject: [PATCH] Install ginkgo executable in test/build.sh ginkgo executable is used in e2e test to support parallelism. Make sure to install it before running e2e test in the presubmit and CI jobs. --- test/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/build.sh b/test/build.sh index 482fa783..a91e4f9b 100755 --- a/test/build.sh +++ b/test/build.sh @@ -43,7 +43,7 @@ function print-help() { echo " pr Build node-problem-detector for presubmit jobs and push to staging. Flag -p is required." echo " ci Build node-problem-detector for CI jobs and push to staging." echo " get-ci-env Download environment variable file from staging for CI job." - echo " install-lib Install the libraries needed." + echo " install-lib Install the required libraries and tools for presubmit and CI jobs." echo echo "Examples:" echo " build.sh help" @@ -66,6 +66,9 @@ function get-version() { function install-lib() { apt-get update apt-get install -y libsystemd-dev + # Turn off go modules here, because we are not trying to install + # ginkgo library/module. We are trying to install the ginkgo executable. + GO111MODULE=off go get -v github.com/onsi/ginkgo/ginkgo } function write-env-file() {