aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gunhan Gulsoy <gunan@google.com>2017-03-17 10:29:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-17 11:57:37 -0700
commit64522550abf862fe641dd8d782f9ace9fb75f7a9 (patch)
treea48745c454ab492d6b8fa3c30393aa8a08bece04
parent9ffd037424ffc2460be10f0cf11214a071b14a9a (diff)
Add an option to omit contrib tests in ci build.
Change: 150463151
-rwxr-xr-xtensorflow/tools/ci_build/ci_parameterized_build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/tools/ci_build/ci_parameterized_build.sh b/tensorflow/tools/ci_build/ci_parameterized_build.sh
index 7aadfd280e..e1a312b858 100755
--- a/tensorflow/tools/ci_build/ci_parameterized_build.sh
+++ b/tensorflow/tools/ci_build/ci_parameterized_build.sh
@@ -88,6 +88,9 @@
# 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_CONTRIB_TESTS:
+# If set to any non-empty or non-0 value, will skipp running
+# contrib tests.
#
# This script can be used by Jenkins parameterized / matrix builds.
@@ -146,6 +149,10 @@ else
EXTRA_PARAMS="${EXTRA_PARAMS} -e TF_BUILD_ENABLE_XLA=1"
fi
+if [[ -n "$TF_SKIP_CONTRIB_TESTS" ]]; then
+ BAZEL_TARGET="$BAZEL_TARGET -//tensorflow/contrib/..."
+fi
+
TUT_TEST_DATA_DIR="/tmp/tf_tutorial_test_data"
##########################################################