Skip to content

Commit

Permalink
Make bazel on travis less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
rmohr committed Mar 1, 2019
1 parent 298a207 commit b0da8ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ tools/vms-generator/vms-generator
coverage.html
manifests/**/*.tmp
bazel-*
.bazelrc
8 changes: 7 additions & 1 deletion hack/dockerized
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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 <<EOF
common --noshow_progress --noshow_loading_progress
EOF
fi

# Build the build container
(cd ${DOCKER_DIR} && docker build . ${BUILDER_EXTRA_ARGS} -t ${BUILDER})

Expand Down

0 comments on commit b0da8ef

Please sign in to comment.