From a90fa252bb502fe473f53420b06ed2a7489c2139 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Mon, 16 Apr 2018 13:01:23 -0700 Subject: [PATCH 1/2] Run integration tests in kokoro --- integration-test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/integration-test.sh b/integration-test.sh index c44135fd3..9971d67a7 100755 --- a/integration-test.sh +++ b/integration-test.sh @@ -13,7 +13,14 @@ # limitations under the License. #!/bin/bash -set -e +set -ex + +if [ -f "$KOKORO_GFILE_DIR"/common.sh ]; then + echo "Installing dependencies..." + source "$KOKORO_GFILE_DIR/common.sh" + pushd github/kaniko +fi echo "Running integration tests..." +make out/executor go run integration_tests/integration_test_yaml.go | gcloud container builds submit --config /dev/fd/0 . From 3a52d1490a35700dd889d120a9fcb969d2979a0f Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Mon, 16 Apr 2018 14:12:51 -0700 Subject: [PATCH 2/2] move kaniko into gopath --- integration-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-test.sh b/integration-test.sh index 9971d67a7..2763b0ccd 100755 --- a/integration-test.sh +++ b/integration-test.sh @@ -18,7 +18,9 @@ set -ex if [ -f "$KOKORO_GFILE_DIR"/common.sh ]; then echo "Installing dependencies..." source "$KOKORO_GFILE_DIR/common.sh" - pushd github/kaniko + mkdir -p /usr/local/go/src/github.com/GoogleCloudPlatform/ + cp -r github/kaniko /usr/local/go/src/github.com/GoogleCloudPlatform/ + pushd /usr/local/go/src/github.com/GoogleCloudPlatform/kaniko fi echo "Running integration tests..."