2016-06-05 20:46:54 -07:00
language : generic
2019-06-14 14:52:32 +08:00
# Use Ubuntu 16.04
dist : xenial
2016-06-05 20:46:54 -07:00
2016-06-22 11:28:01 -07:00
matrix :
include :
2016-10-25 22:39:21 -07:00
- os : linux
2020-02-12 11:15:47 -08:00
env : PYTHON=3.6 PYTHONWARNINGS=ignore
2017-08-21 23:48:20 -07:00
2016-10-25 22:39:21 -07:00
- os : osx
osx_image : xcode7
2020-02-12 11:15:47 -08:00
env : PYTHON=3.6 PYTHONWARNINGS=ignore
2017-08-21 23:48:20 -07:00
2016-10-25 22:39:21 -07:00
- os : linux
2018-05-27 05:38:50 +08:00
env :
- JDK='Oracle JDK 8'
2020-02-12 11:15:47 -08:00
- PYTHON=3.6 PYTHONWARNINGS=ignore
2019-03-07 09:59:13 +08:00
- RAY_INSTALL_JAVA=1
2018-05-27 05:38:50 +08:00
install :
2019-03-15 22:23:54 -07:00
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- if [ $RAY_CI_JAVA_AFFECTED != "1" ]; then exit; fi
2019-12-31 20:48:08 -08:00
- ./ci/travis/install-bazel.sh
2019-03-22 14:30:05 +08:00
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
2018-05-27 05:38:50 +08:00
- export PATH="$HOME/miniconda/bin:$PATH"
2019-03-22 14:30:05 +08:00
- ./ci/suppress_output ./ci/travis/install-ray.sh
2018-05-27 05:38:50 +08:00
script :
2019-03-15 22:23:54 -07:00
- if [ $RAY_CI_JAVA_AFFECTED != "1" ]; then exit; fi
- ./java/test.sh
2018-05-27 05:38:50 +08:00
2019-12-10 20:33:24 +08:00
- os : linux
2019-12-22 10:56:05 +08:00
env :
- TESTSUITE=streaming
- JDK='Oracle JDK 8'
- RAY_INSTALL_JAVA=1
2020-02-12 11:15:47 -08:00
- PYTHON=3.6 PYTHONWARNINGS=ignore
2019-12-10 20:33:24 +08:00
install :
- python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2019-12-22 10:56:05 +08:00
- if [[ $RAY_CI_STREAMING_PYTHON_AFFECTED != "1" && $RAY_CI_STREAMING_JAVA_AFFECTED != "1" ]]; then exit; fi
2019-12-31 20:48:08 -08:00
- ./ci/travis/install-bazel.sh
2019-12-10 20:33:24 +08:00
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
# Streaming cpp test.
2020-01-06 11:04:29 +08:00
- if [ $RAY_CI_STREAMING_CPP_AFFECTED == "1" ]; then ./ci/suppress_output bazel test //streaming:all && bash streaming/src/test/run_streaming_queue_test.sh; fi
2019-12-22 10:56:05 +08:00
- if [ $RAY_CI_STREAMING_PYTHON_AFFECTED == "1" ]; then python -m pytest -v --durations=5 --timeout=300 streaming/python/tests/; fi
- if [ $RAY_CI_STREAMING_JAVA_AFFECTED == "1" ]; then ./streaming/java/test.sh; fi
2019-12-10 20:33:24 +08:00
2020-02-05 12:06:25 +08:00
- os : linux
env :
- TESTSUITE=gcs_service
- JDK='Oracle JDK 8'
- RAY_GCS_SERVICE_ENABLED=true
2020-02-12 11:15:47 -08:00
- PYTHON=3.6 PYTHONWARNINGS=ignore
2020-02-10 09:39:14 +08:00
- RAY_INSTALL_JAVA=1
2020-02-05 12:06:25 +08:00
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- ./ci/travis/install-bazel.sh
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
2020-02-24 09:48:40 +08:00
- ./ci/suppress_output ./ci/travis/install-cython-examples.sh
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=master bash)"
2020-02-05 12:06:25 +08:00
script :
- ./ci/suppress_output bash src/ray/test/run_core_worker_tests.sh
- ./ci/suppress_output bash streaming/src/test/run_streaming_queue_test.sh
2020-02-10 09:39:14 +08:00
- ./java/test.sh
2020-02-05 12:06:25 +08:00
2020-02-24 09:48:40 +08:00
- os : linux
env :
- TESTSUITE=gcs_service_python_testcase
- JDK='Oracle JDK 8'
- RAY_GCS_SERVICE_ENABLED=true
- PYTHON=3.6 PYTHONWARNINGS=ignore
- RAY_INSTALL_JAVA=1
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- ./ci/travis/install-bazel.sh
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
- ./ci/suppress_output ./ci/travis/install-cython-examples.sh
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=master bash)"
script :
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/keep_alive bazel test --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors --test_tag_filters=-jenkins_only python/ray/tests/...
2018-05-27 05:38:50 +08:00
- os : linux
2019-02-24 00:00:50 -08:00
env : LINT=1 PYTHONWARNINGS=ignore
2016-10-25 22:39:21 -07:00
before_install :
- sudo apt-get update -qq
install : [ ]
script :
2019-02-21 11:09:08 -08:00
- ./ci/travis/check-git-clang-format-output.sh
2017-03-01 23:34:44 -08:00
# Try generating Sphinx documentation. To do this, we need to install
# Ray first.
2019-02-21 11:09:08 -08:00
- ./ci/travis/install-dependencies.sh
2019-11-24 15:32:06 -08:00
- export PATH="$HOME/miniconda/bin:$PATH"
2017-02-27 21:14:31 -08:00
- cd doc
2017-10-19 22:25:56 -07:00
- pip install -q -r requirements-doc.txt
2019-09-25 14:46:56 -07:00
- pip install -q yapf==0.23.0
2017-02-27 21:14:31 -08:00
- sphinx-build -W -b html -d _build/doctrees source _build/html
2017-03-21 12:57:54 -07:00
- cd ..
2018-08-07 12:17:44 -07:00
# Run Python linting, ignore dict vs {} (C408), others are defaults
2020-02-05 14:16:58 -08:00
- flake8 --inline-quotes '"' --no-avoid-escape --exclude=python/ray/core/generated/,streaming/python/generated,doc/source/conf.py,python/ray/cloudpickle/,python/ray/thirdparty_files --ignore=C408,E121,E123,E126,E226,E24,E704,W503,W504,W605
2019-02-21 11:09:08 -08:00
- ./ci/travis/format.sh --all
2018-12-19 18:41:09 -08:00
# Make sure that the README is formatted properly.
- cd python
- python setup.py check --restructuredtext --strict --metadata
2019-02-14 22:16:19 +08:00
- cd ..
# Run Bazel linter Buildifier.
- wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
- tar -xf go1.11.linux-amd64.tar.gz
- mkdir $HOME/go_dir
- export GOROOT=`pwd`/go
- export GOPATH="$HOME/go_dir"
- export PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
- go get github.com/bazelbuild/buildtools/buildifier
2019-02-21 11:09:08 -08:00
- ./ci/travis/bazel-format.sh
2020-02-24 11:12:07 -08:00
# Run TypeScript and HTML linting.
- pushd python/ray/dashboard/client
- source "$HOME/.nvm/nvm.sh"
- nvm use node
- node_modules/.bin/eslint --max-warnings 0 $(find src -name "*.ts" -or -name "*.tsx")
- node_modules/.bin/prettier --check $(find src -name "*.ts" -or -name "*.tsx")
- node_modules/.bin/prettier --check public/index.html
- popd
2017-08-21 23:48:20 -07:00
# Build Linux wheels.
- os : linux
2020-01-10 11:41:00 +08:00
env : LINUX_WHEELS=1 PYTHONWARNINGS=ignore RAY_INSTALL_JAVA=1
2017-08-21 23:48:20 -07:00
install :
2019-03-15 22:23:54 -07:00
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- if [ $RAY_CI_LINUX_WHEELS_AFFECTED != "1" ]; then exit; fi
2019-03-13 15:57:33 -07:00
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
2019-03-15 22:23:54 -07:00
2019-07-10 22:03:45 +08:00
# Mount bazel cache dir to the docker container.
2019-10-14 15:48:23 -07:00
# For the linux wheel build, we use a shared cache between all
# wheels, but not between different travis runs, because that
# caused timeouts in the past. See the "cache: false" line below.
2019-11-21 14:41:13 -08:00
- export MOUNT_BAZEL_CACHE="-v $HOME/ray-bazel-cache:/root/ray-bazel-cache -e TRAVIS=true -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST -e encrypted_1c30b31fe1ee_key=$encrypted_1c30b31fe1ee_key -e encrypted_1c30b31fe1ee_iv=$encrypted_1c30b31fe1ee_iv"
2019-10-14 15:48:23 -07:00
2019-07-10 22:03:45 +08:00
# This command should be kept in sync with ray/python/README-building-wheels.md,
# except the `$MOUNT_BAZEL_CACHE` part.
2019-10-14 15:48:23 -07:00
2020-02-26 17:54:23 -08:00
- ./ci/suppress_output docker run -e TRAVIS_COMMIT=$TRAVIS_COMMIT --rm -w /ray -v `pwd`:/ray $MOUNT_BAZEL_CACHE -ti rayproject/arrow_linux_x86_64_base:ARROW-5631 /ray/python/build-wheel-manylinux1.sh
2019-11-27 17:05:36 -08:00
2017-08-21 23:48:20 -07:00
script :
2019-03-15 22:23:54 -07:00
- if [ $RAY_CI_LINUX_WHEELS_AFFECTED != "1" ]; then exit; fi
2019-02-21 11:09:08 -08:00
- ./ci/travis/test-wheels.sh
2019-10-14 15:48:23 -07:00
cache : false
2017-08-21 23:48:20 -07:00
# Build MacOS wheels.
- os : osx
osx_image : xcode7
2020-01-10 11:41:00 +08:00
env : MAC_WHEELS=1 PYTHONWARNINGS=ignore RAY_INSTALL_JAVA=1
2017-08-21 23:48:20 -07:00
install :
2019-03-15 22:23:54 -07:00
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- if [ $RAY_CI_MACOS_WHEELS_AFFECTED != "1" ]; then exit; fi
2019-03-15 10:37:57 -07:00
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
2017-08-21 23:48:20 -07:00
# This command should be kept in sync with ray/python/README-building-wheels.md.
2019-06-17 19:00:50 +08:00
- ./ci/suppress_output ./python/build-wheel-macos.sh
2017-08-21 23:48:20 -07:00
script :
2019-03-15 22:23:54 -07:00
- if [ $RAY_CI_MACOS_WHEELS_AFFECTED != "1" ]; then exit; fi
2019-02-21 11:09:08 -08:00
- ./ci/travis/test-wheels.sh
2017-08-21 23:48:20 -07:00
2020-02-15 23:50:44 +01:00
# RLlib: Learning tests (from rllib/tuned_examples/regression_tests/*.yaml).
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_REGRESSION_TESTS=1
- TF_VERSION=2.0.0b1
- TFP_VERSION=0.8
- TORCH_VERSION=1.4
- PYTHON=3.6
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
- if [ $RAY_CI_RLLIB_AFFECTED != "1" ]; then exit; fi
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
- if [ $RAY_CI_RLLIB_AFFECTED != "1" ]; then exit; fi
- travis_wait 60 bazel test --build_tests_only --test_tag_filters=learning_tests --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
# RLlib: Learning tests with tf=1.x (from rllib/tuned_examples/regression_tests/*.yaml).
# Requested by Edi (MS): Test all learning capabilities with tf1.x
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_REGRESSION_TESTS_TF1X=1
- TF_VERSION=1.14.0
- TFP_VERSION=0.7
- TORCH_VERSION=1.4
- PYTHON=3.6
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- travis_wait 60 bazel test --build_tests_only --test_tag_filters=learning_tests --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
# RLlib: Quick Agent train.py runs (compilation & running, no(!) learning).
# Agent single tests (compilation, loss-funcs, etc..).
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_QUICK_TRAIN_AND_MISC_TESTS=1
- PYTHON=3.6
- TF_VERSION=2.0.0b1
- TFP_VERSION=0.8
- TORCH_VERSION=1.4
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-22 20:02:31 +01:00
- travis_wait 60 bazel test --build_tests_only --test_tag_filters=quick_train --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
2020-02-15 23:50:44 +01:00
# Test everything that does not have any of the "main" labels:
# "learning_tests|quick_train|examples|tests_dir".
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=-learning_tests,-quick_train,-examples,-tests_dir --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
# RLlib: Everything in rllib/examples/ directory.
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_EXAMPLE_DIR_TESTS=1
- PYTHON=3.6
- TF_VERSION=2.0.0b1
- TFP_VERSION=0.8
- TORCH_VERSION=1.4
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=examples_A,examples_B --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=examples_C --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=examples_E,examples_M,examples_P --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=examples_R,examples_T --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
# RLlib: tests_dir: Everything in rllib/tests/ directory (A-I).
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_TESTS_DIR_TESTS_A_TO_I=1
- PYTHON=3.6
- TF_VERSION=2.0.0b1
- TFP_VERSION=0.8
- TORCH_VERSION=1.4
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_A,tests_dir_C,tests_dir_D --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_E --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_F,tests_dir_I --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
# RLlib: tests_dir: Everything in rllib/tests/ directory (J-Z).
- os : linux
env :
- RLLIB_TESTING=1 RLLIB_TESTS_DIR_TESTS_J_TO_Z=1
- PYTHON=3.6
- TF_VERSION=2.0.0b1
- TFP_VERSION=0.8
- TORCH_VERSION=1.4
- PYTHONWARNINGS=ignore
install :
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/travis/install-bazel.sh
- ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
script :
2020-02-16 08:52:49 -08:00
- if [ $RAY_CI_RLLIB_FULL_AFFECTED != "1" ]; then exit; fi
2020-02-15 23:50:44 +01:00
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_L,tests_dir_M --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
2020-02-28 16:44:17 -08:00
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_N,tests_dir_O,test_dir_P --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
2020-02-15 23:50:44 +01:00
- ./ci/keep_alive bazel test --build_tests_only --test_tag_filters=tests_dir_R,tests_dir_S --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors rllib/...
2016-06-05 20:46:54 -07:00
install :
2019-03-15 22:23:54 -07:00
- eval `python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py`
2019-10-07 01:57:31 -07:00
- if [ $RAY_CI_SERVE_AFFECTED != "1" ] && [ $RAY_CI_TUNE_AFFECTED != "1" ] && [ $RAY_CI_RLLIB_AFFECTED != "1" ] && [ $RAY_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
2019-03-15 22:23:54 -07:00
2019-12-31 20:48:08 -08:00
- ./ci/travis/install-bazel.sh
2019-03-07 12:09:03 -08:00
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
2017-07-13 09:23:04 -07:00
- export PATH="$HOME/miniconda/bin:$PATH"
2019-03-07 12:09:03 -08:00
- ./ci/suppress_output ./ci/travis/install-ray.sh
- ./ci/suppress_output ./ci/travis/install-cython-examples.sh
2016-06-05 20:46:54 -07:00
2020-01-10 06:16:08 +08:00
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=master bash)"
2019-11-24 11:43:34 -08:00
script :
2019-11-24 15:32:06 -08:00
- export PATH="$HOME/miniconda/bin:$PATH"
2019-11-24 11:43:34 -08:00
# raylet integration tests
2019-06-03 19:59:43 +08:00
- ./ci/suppress_output bash src/ray/test/run_core_worker_tests.sh
2019-03-07 12:09:03 -08:00
- ./ci/suppress_output bash src/ray/test/run_object_manager_tests.sh
2019-02-24 00:00:50 -08:00
2020-02-15 23:50:44 +01:00
# cc bazel tests (w/o RLlib)
2020-02-16 20:26:03 +01:00
- ./ci/suppress_output bazel test --build_tests_only --show_progress_rate_limit=100 --test_output=errors -- //:all -rllib/...
2018-12-03 23:15:43 -08:00
2020-02-04 08:29:16 -08:00
# ray serve tests
2020-02-18 13:43:19 -08:00
- if [ $RAY_CI_SERVE_AFFECTED == "1" ]; then ./ci/keep_alive bazel test --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors --test_tag_filters=-jenkins_only python/ray/serve/...; fi
2019-10-03 15:14:09 -07:00
2020-01-10 06:16:08 +08:00
# ray operator tests
- cd ./deploy/ray-operator/
2020-02-26 14:09:29 -08:00
- ../../ci/suppress_output go build
- ../../ci/suppress_output go test ./...
2020-01-10 06:16:08 +08:00
- cd ../..
2020-01-25 12:25:12 -08:00
# random python tests TODO(ekl): these should be moved to bazel
2020-03-02 20:24:20 -08:00
- if [ $RAY_CI_PYTHON_AFFECTED == "1" ]; then python -m pytest -v --durations=5 --timeout=300 python/ray/experimental/test/async_test.py; fi
2020-01-18 23:30:09 -08:00
2020-01-25 12:25:12 -08:00
# bazel python tests. This should be run last to keep its logs at the end of travis logs.
- if [ $RAY_CI_PYTHON_AFFECTED == "1" ]; then ./ci/keep_alive bazel test --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors --test_tag_filters=-jenkins_only python/ray/tests/...; fi
- if [ $RAY_CI_TUNE_AFFECTED == "1" ]; then ./ci/keep_alive bazel test --spawn_strategy=local --flaky_test_attempts=3 --nocache_test_results --test_verbose_timeout_warnings --progress_report_interval=100 --show_progress_rate_limit=100 --show_timestamps --test_output=errors --test_tag_filters=-jenkins_only python/ray/tune/...; fi
2020-01-18 23:30:09 -08:00
# NO MORE TESTS BELOW, keep them above.
2017-10-09 23:10:58 -07:00
deploy :
2018-02-26 10:26:38 -08:00
- provider : s3
2020-03-02 20:24:20 -08:00
edge : true # This supposedly opts in to deploy v2.
2019-06-07 23:19:10 -07:00
access_key_id : AKIAU6DMUCJUFL3EX3SM
2018-02-26 10:26:38 -08:00
secret_access_key :
2019-06-07 23:19:10 -07:00
secure : J1sX71fKFPQhgWzColllxfzcF877ScBZ1cIl71krZ6SO0LKnwsCScpQck5eZOyQo/Iverwye0iKtE87qNsiRi3+V2D9iulSr18T09j7+FjPKfxAmXmjfrNafoMXTDQroSJblCri5vl+DysISPqImJkWTNaYhGJ9QakoSd5djnAopLNWj6PCR3S50baS49+nB5nSIY3jMhtUzlaBdniFPFC81Cxyuafr4pv6McGRfR/dK+ZnPhdGtMnVeIJXB+ooZKQ26mDJKBPka4jm3u1Oa72b/Atu2RO3MwxTg79LTrMxXKh2OcCqhtD2Z3lz1OltvNSunCuwY8AejCJsfSLbM9mGDoz+xhNUWmYNy48YFf+61OY8PXi8S/9Q817yb3GpLbb2l/P+KMgq9eSEiELIOwuYsDxPX5TuAg6dx0wCNgDEBJoThSQjYl6MgJrLrs7p+JBxp3giedHiy0TLa5hCVKTj3euONAXDArYnnT+DvUIOkaeTk5DClRZbZ0sUXhLy//HuT5WJvjFBJJZ0u0f4RLVb5D7DI4uMZr7+yJPDR2AXCyW9YMaBEbmEYbPaKi283jlEyn7R33+AZlnXv0THHwZ4xvjKKG3/fBSXsOUmv5wmUveEqVGDj1mKPGj9NF8iA5qMm2AaZuJpEEBVBZtSlTZt6ZG7rzAJZGNL52t7xuMo=
2018-02-26 10:26:38 -08:00
bucket : ray-wheels
acl : public_read
region : us-west-2
local_dir : .whl
2019-06-07 23:20:29 -07:00
upload-dir : "$TRAVIS_BRANCH/$TRAVIS_COMMIT"
2018-02-26 10:26:38 -08:00
skip_cleanup : true
on :
repo : ray-project/ray
2019-04-17 16:24:55 -07:00
all_branches : true
2018-02-26 10:26:38 -08:00
condition : $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
2020-01-02 16:00:51 -08:00
2018-02-26 10:26:38 -08:00
- provider : s3
2020-03-02 20:24:20 -08:00
edge : true # This supposedly opts in to deploy v2.
2019-06-07 23:19:10 -07:00
access_key_id : AKIAU6DMUCJUFL3EX3SM
2018-02-26 10:26:38 -08:00
secret_access_key :
2019-06-07 23:19:10 -07:00
secure : J1sX71fKFPQhgWzColllxfzcF877ScBZ1cIl71krZ6SO0LKnwsCScpQck5eZOyQo/Iverwye0iKtE87qNsiRi3+V2D9iulSr18T09j7+FjPKfxAmXmjfrNafoMXTDQroSJblCri5vl+DysISPqImJkWTNaYhGJ9QakoSd5djnAopLNWj6PCR3S50baS49+nB5nSIY3jMhtUzlaBdniFPFC81Cxyuafr4pv6McGRfR/dK+ZnPhdGtMnVeIJXB+ooZKQ26mDJKBPka4jm3u1Oa72b/Atu2RO3MwxTg79LTrMxXKh2OcCqhtD2Z3lz1OltvNSunCuwY8AejCJsfSLbM9mGDoz+xhNUWmYNy48YFf+61OY8PXi8S/9Q817yb3GpLbb2l/P+KMgq9eSEiELIOwuYsDxPX5TuAg6dx0wCNgDEBJoThSQjYl6MgJrLrs7p+JBxp3giedHiy0TLa5hCVKTj3euONAXDArYnnT+DvUIOkaeTk5DClRZbZ0sUXhLy//HuT5WJvjFBJJZ0u0f4RLVb5D7DI4uMZr7+yJPDR2AXCyW9YMaBEbmEYbPaKi283jlEyn7R33+AZlnXv0THHwZ4xvjKKG3/fBSXsOUmv5wmUveEqVGDj1mKPGj9NF8iA5qMm2AaZuJpEEBVBZtSlTZt6ZG7rzAJZGNL52t7xuMo=
2018-02-26 10:26:38 -08:00
bucket : ray-wheels
acl : public_read
region : us-west-2
local_dir : .whl
upload-dir : latest
skip_cleanup : true
on :
2019-11-27 17:05:36 -08:00
branch : master
2018-02-26 10:26:38 -08:00
repo : ray-project/ray
condition : $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
2019-06-30 17:57:48 -07:00
2019-12-17 00:03:05 -08:00
- provider : script
2020-03-02 20:24:20 -08:00
edge : true # This supposedly opts in to deploy v2.
2019-12-17 00:03:05 -08:00
script : bash $TRAVIS_BUILD_DIR/ci/travis/build-autoscaler-images.sh || true
skip_cleanup : true
on :
repo : ray-project/ray
all_branches : true
condition : $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
2019-06-30 17:57:48 -07:00
cache :
directories :
- $HOME/ray-bazel-cache