|
dist: xenial |
|
language: python |
|
python: |
|
- "3.6" |
|
|
|
branches: |
|
only: |
|
- master |
|
- /^\d+\.\d+(\.\d+)?(-\S*)?$/ |
|
|
|
|
|
node_js: |
|
- "11" |
|
|
|
env: |
|
|
|
|
|
|
|
|
|
|
|
global: |
|
- BAZEL=2.1.0 |
|
- BAZEL_SHA256SUM=e13581d44faad6ac807dd917e682fef20359d26728166ac35dadd8ee653a580d |
|
matrix: |
|
- TF_VERSION_ID=tf-nightly |
|
- TF_VERSION_ID= |
|
|
|
cache: |
|
|
|
|
|
|
|
pip: false |
|
|
|
directories: |
|
- $HOME/.cache/tb-bazel-repo |
|
- $HOME/.cache/tb-bazel-disk |
|
|
|
|
|
|
|
|
|
|
|
|
|
before_install: |
|
- elapsed() { TZ=UTC printf "Time %(%T)T %s\n" "$SECONDS" "$1"; } |
|
- elapsed "before_install" |
|
- ci/download_bazel.sh "${BAZEL}" "${BAZEL_SHA256SUM}" ~/bazel |
|
- sudo mv ~/bazel /usr/local/bin/bazel |
|
- cp ci/bazelrc ~/.bazelrc |
|
- elapsed "before_install (done)" |
|
|
|
install: |
|
- elapsed "install" |
|
- "PY3=\"$(python -c 'if __import__(\"sys\").version_info[0] > 2: print(1)')\"" |
|
|
|
|
|
- pip install -U pip |
|
|
|
- pip uninstall -y numpy |
|
- | |
|
pip install \ |
|
-r tensorboard/pip_package/requirements.txt \ |
|
-r tensorboard/pip_package/requirements_dev.txt \ |
|
; |
|
|
|
- nvm use v11 |
|
- | |
|
# Install TensorFlow if requested |
|
if [ -n "${TF_VERSION_ID}" ]; then |
|
pip install -I "${TF_VERSION_ID}" |
|
fi |
|
|
|
- sudo rm -f /etc/boto.cfg |
|
- pip freeze |
|
- elapsed "install (done)" |
|
|
|
before_script: |
|
|
|
- elapsed "before_script" |
|
- | |
|
# Specify subset of tests to run depending on TF installation config. |
|
# We condition the value of --test_tag_filters so that we can run the |
|
# bazel test command unconditionally which produces nicer log output. |
|
if [ -z "${TF_VERSION_ID}" ]; then |
|
test_tag_filters=support_notf |
|
else |
|
test_tag_filters= |
|
fi |
|
- elapsed "before_script (done)" |
|
|
|
|
|
|
|
script: |
|
- elapsed "script" |
|
|
|
- elapsed && bazel fetch //tensorboard/... |
|
- elapsed && bazel build //tensorboard/... |
|
- elapsed && bazel test //tensorboard/... --test_tag_filters="${test_tag_filters}" |
|
- elapsed && bazel run //tensorboard/pip_package:test_pip_package -- --tf-version "${TF_VERSION_ID}" |
|
|
|
- elapsed && bazel test //tensorboard/compat/tensorflow_stub:gfile_s3_test |
|
- elapsed && bazel test //tensorboard/summary/writer:event_file_writer_s3_test |
|
- elapsed "script (done)" |
|
|
|
after_script: |
|
|
|
- elapsed "after_script" |
|
- bazel shutdown |
|
|
|
notifications: |
|
email: false |
|
|