aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/ci_build/ci_parameterized_build.sh
diff options
context:
space:
mode:
authorGravatar Jonathan Hseu <jhseu@google.com>2017-02-15 07:46:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-15 08:06:31 -0800
commitd7dc1304053428849f47981f3e77ad1fe88d59dd (patch)
treeb9f628d389bd24ce41c6b499fde6ce2a0789b7f1 /tensorflow/tools/ci_build/ci_parameterized_build.sh
parent50575a87d4369d75cdccd11b26458cc3ef8ecc50 (diff)
Update CI Docker images to Ubuntu 16.04
Change: 147596183
Diffstat (limited to 'tensorflow/tools/ci_build/ci_parameterized_build.sh')
-rwxr-xr-xtensorflow/tools/ci_build/ci_parameterized_build.sh33
1 files changed, 3 insertions, 30 deletions
diff --git a/tensorflow/tools/ci_build/ci_parameterized_build.sh b/tensorflow/tools/ci_build/ci_parameterized_build.sh
index 4fd1277d63..5e2cf94059 100755
--- a/tensorflow/tools/ci_build/ci_parameterized_build.sh
+++ b/tensorflow/tools/ci_build/ci_parameterized_build.sh
@@ -19,7 +19,7 @@
#
# The script obeys the following required environment variables:
# TF_BUILD_CONTAINER_TYPE: (CPU | GPU | ANDROID | ANDROID_FULL)
-# TF_BUILD_PYTHON_VERSION: (PYTHON2 | PYTHON3 | PYTHON3.5)
+# TF_BUILD_PYTHON_VERSION: (PYTHON2 | PYTHON3)
# TF_BUILD_IS_PIP: (NO_PIP | PIP | BOTH)
#
# The below environment variable is required, but will be deprecated together
@@ -33,8 +33,7 @@
# ANDROID & PIP (Android and PIP builds are mutually exclusive)
#
# 2) TF_BUILD_PYTHON_VERSION is set to PYTHON3, the build will use the version
-# pointed to by "which python3" on the system, which is typically python3.4. To
-# build for python3.5, set the environment variable to PYTHON3.5
+# pointed to by "which python3" on the system.
#
#
# Additionally, the script follows the directions of optional environment
@@ -422,9 +421,7 @@ fi
# Process Python version
if [[ ${TF_BUILD_PYTHON_VERSION} == "python2" ]]; then
:
-elif [[ ${TF_BUILD_PYTHON_VERSION} == "python3" || \
- ${TF_BUILD_PYTHON_VERSION} == "python3.4" || \
- ${TF_BUILD_PYTHON_VERSION} == "python3.5" ]]; then
+elif [[ ${TF_BUILD_PYTHON_VERSION} == "python3" ]]; then
# Supply proper environment variable to select Python 3
if [[ "${DO_DOCKER}" == "1" ]]; then
EXTRA_PARAMS="${EXTRA_PARAMS} -e CI_BUILD_PYTHON=${TF_BUILD_PYTHON_VERSION}"
@@ -491,30 +488,6 @@ echo ""
TMP_DIR=""
DOCKERFILE_FLAG=""
-if [[ "${TF_BUILD_PYTHON_VERSION}" == "python3.5" ]]; then
- # Modify Dockerfile for Python3.5 build
- TMP_DIR=$(mktemp -d)
- echo "Docker build will occur in temporary directory: ${TMP_DIR}"
-
- # Copy the files required for the docker build
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
- cp -r "${SCRIPT_DIR}/install" "${TMP_DIR}/install" || \
- die "ERROR: Failed to copy directory ${SCRIPT_DIR}/install"
-
- DOCKERFILE="${SCRIPT_DIR}/Dockerfile.${TF_BUILD_CONTAINER_TYPE}"
- cp "${DOCKERFILE}" "${TMP_DIR}/" || \
- die "ERROR: Failed to copy Dockerfile at ${DOCKERFILE}"
- DOCKERFILE="${TMP_DIR}/Dockerfile.${TF_BUILD_CONTAINER_TYPE}"
-
- # Replace a line in the Dockerfile
- sed -i \
- 's/RUN \/install\/install_pip_packages.sh/RUN \/install\/install_python3.5_pip_packages.sh/g' \
- "${DOCKERFILE}" && \
- echo "Copied and modified Dockerfile for Python 3.5 build: ${DOCKERFILE}" || \
- die "ERROR: Faild to copy and modify Dockerfile: ${DOCKERFILE}"
-
- DOCKERFILE_FLAG="--dockerfile ${DOCKERFILE}"
-fi
chmod +x ${TMP_SCRIPT}