build: only stamp build builds in release mode (#14431)

* No longer runs the `workspace_status_command` for normal Bazel builds. This should speed up builds by about ~8 seconds init phase.
This commit is contained in:
Paul Gschwendtner
2018-12-12 00:01:34 +01:00
committed by vivian-hu
parent cefff178ec
commit b93ef47b61
+6 -1
View File
@@ -33,9 +33,14 @@ test --test_output=errors
build --experimental_ui
test --experimental_ui
#################################
# Release configuration. #
# Run with "--config=release" #
#################################
# Configures script to do version stamping.
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
build --workspace_status_command=./tools/bazel-stamp-vars.sh
build:release --workspace_status_command=./tools/bazel-stamp-vars.sh
###############################
# Typescript / Angular / Sass #