From b0da8efb478f5a5ea3cdd3a7473e81904246bbac Mon Sep 17 00:00:00 2001 From: Roman Mohr Date: Fri, 1 Mar 2019 10:16:31 +0100 Subject: [PATCH] Make bazel on travis less verbose --- .gitignore | 1 + hack/dockerized | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 673e9b5da524..8ea4b9930110 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ tools/vms-generator/vms-generator coverage.html manifests/**/*.tmp bazel-* +.bazelrc diff --git a/hack/dockerized b/hack/dockerized index 482b6f7ab47f..22e6ae9a23a2 100755 --- a/hack/dockerized +++ b/hack/dockerized @@ -13,7 +13,6 @@ SYNC_VENDOR=${SYNC_VENDOR:-false} TEMPFILE=".rsynctemp" -# Reduce verbosity if an automated build BUILDER_EXTRA_ARGS="" if [ -n "${KUBEVIRT_CACHE_FROM}" ]; then BUILDER_EXTRA_ARGS="${BUILDER_EXTRA_ARGS} --cache-from kubevirt/builder-cache:${KUBEVIRT_CACHE_FROM}" @@ -23,6 +22,13 @@ if [ -n "${KUBEVIRT_UPDATE_CACHE_FROM}" ]; then BUILDER_EXTRA_ARGS="${BUILDER_EXTRA_ARGS} -t kubevirt/builder-cache:${KUBEVIRT_UPDATE_CACHE_FROM}" fi +# Be less verbose with bazel +if [ -n "${TRAVIS_JOB_ID}" ]; then + cat >.bazelrc <