diff options
author | Austin Anderson <angerson@google.com> | 2018-09-07 17:42:34 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-07 17:45:51 -0700 |
commit | 5de0f2199dcd23ceb9b548800fd9ce679e19d7a3 (patch) | |
tree | 05ec1579b7dc11b7dc91cba0481028ead57f34d6 /tensorflow/tools/ci_build | |
parent | 9982fd6c8831cbd2f58954f79ea71f26660393bc (diff) |
Replace blanket-exclusion of TF Lite tests with --build_tests_only
PiperOrigin-RevId: 212065169
Diffstat (limited to 'tensorflow/tools/ci_build')
-rwxr-xr-x | tensorflow/tools/ci_build/ci_parameterized_build.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tensorflow/tools/ci_build/ci_parameterized_build.sh b/tensorflow/tools/ci_build/ci_parameterized_build.sh index be7099e7c0..c8472102cb 100755 --- a/tensorflow/tools/ci_build/ci_parameterized_build.sh +++ b/tensorflow/tools/ci_build/ci_parameterized_build.sh @@ -85,9 +85,6 @@ # Use the specified configurations when building. # When set, overrides TF_BUILD_IS_OPT and TF_BUILD_MAVX # options, as this will replace the two. -# TF_SKIP_LITE_TESTS: -# If set to any non-empty or non-0 value, will skip running -# contrib/lite tests, but will leave other contrib tests. # TF_SKIP_CONTRIB_TESTS: # If set to any non-empty or non-0 value, will skip running # contrib tests. @@ -134,7 +131,13 @@ BAZEL_CMD="bazel test" BAZEL_BUILD_ONLY_CMD="bazel build" BAZEL_CLEAN_CMD="bazel clean" -DEFAULT_BAZEL_CONFIGS="" +# Default flags: +# --test_summary=detailed: Tell us more about which targets are being built +# --keep_going: Don't stop at the first failure; tell us all the failures +# --build_tests_only: Don't build targets depended on by tests if the test is +# disabled. Also saves some compilation time. Otherwise, +# tries to build everything. +DEFAULT_BAZEL_CONFIGS="--test_summary=detailed --build_tests_only --keep_going" PIP_CMD="${CI_BUILD_DIR}/builds/pip.sh" PIP_TEST_TUTORIALS_FLAG="--test_tutorials" @@ -150,10 +153,6 @@ BENCHMARK_CMD="${CI_BUILD_DIR}/builds/benchmark.sh" EXTRA_PARAMS="" BAZEL_TARGET="//tensorflow/... -//tensorflow/compiler/..." -if [[ -n "$TF_SKIP_LITE_TESTS" ]]; then - BAZEL_TARGET="${BAZEL_TARGET} -//tensorflow/contrib/lite/..." -fi - if [[ -n "$TF_SKIP_CONTRIB_TESTS" ]]; then BAZEL_TARGET="${BAZEL_TARGET} -//tensorflow/contrib/..." fi |