2016-06-05 20:46:54 -07:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
language: generic
|
|
|
|
|
2016-06-22 11:28:01 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2018-12-11 17:21:53 -08:00
|
|
|
env: PYTHON=2.7 PYTHONWARNINGS=ignore
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2018-12-11 17:21:53 -08:00
|
|
|
env: PYTHON=3.5 PYTHONWARNINGS=ignore
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-06-22 11:28:01 -07:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2018-12-11 17:21:53 -08:00
|
|
|
env: PYTHON=2.7 PYTHONWARNINGS=ignore
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2018-12-11 17:21:53 -08:00
|
|
|
env: PYTHON=3.5 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
|
|
|
dist: trusty
|
|
|
|
env:
|
|
|
|
- JDK='Oracle JDK 8'
|
2018-12-11 17:21:53 -08:00
|
|
|
- PYTHON=3.5 PYTHONWARNINGS=ignore
|
2018-05-27 05:38:50 +08:00
|
|
|
install:
|
|
|
|
- ./.travis/install-dependencies.sh
|
|
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
script:
|
|
|
|
- ./java/test.sh
|
|
|
|
|
|
|
|
- os: linux
|
2016-10-25 22:39:21 -07:00
|
|
|
dist: trusty
|
2018-12-11 17:21:53 -08:00
|
|
|
env: LINT=1 PYTHONWARNINGS=ignore
|
2016-10-25 22:39:21 -07:00
|
|
|
before_install:
|
|
|
|
# In case we ever want to use a different version of clang-format:
|
|
|
|
#- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
#- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -qq clang-format-3.8
|
|
|
|
install: []
|
|
|
|
script:
|
|
|
|
- .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.
|
|
|
|
- ./.travis/install-dependencies.sh
|
2017-02-27 21:14:31 -08:00
|
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
- cd doc
|
2017-10-19 22:25:56 -07:00
|
|
|
- pip install -q -r requirements-doc.txt
|
2018-09-09 15:54:46 -07:00
|
|
|
- pip install 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
|
2018-10-26 13:36:58 -07:00
|
|
|
- flake8 --exclude=python/ray/core/generated/,doc/source/conf.py,python/ray/cloudpickle/ --ignore=C408,E121,E123,E126,E226,E24,E704,W503,W504,W605
|
2018-10-18 21:56:22 -07:00
|
|
|
- .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
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2018-12-11 17:21:53 -08:00
|
|
|
env: VALGRIND=1 PYTHON=2.7 PYTHONWARNINGS=ignore
|
2016-10-25 22:39:21 -07:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -qq valgrind
|
2016-12-20 14:46:25 -08:00
|
|
|
install:
|
|
|
|
- ./.travis/install-dependencies.sh
|
2017-07-13 09:23:04 -07:00
|
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
2017-01-17 16:56:40 -08:00
|
|
|
- ./.travis/install-ray.sh
|
2019-01-03 15:51:11 +08:00
|
|
|
- ./.travis/install-with-cache-libs.sh
|
2016-12-20 14:46:25 -08:00
|
|
|
|
2017-09-30 00:11:09 -07:00
|
|
|
script:
|
2018-06-02 07:28:27 +08:00
|
|
|
- cd build
|
|
|
|
- bash ../src/ray/test/run_object_manager_valgrind.sh
|
|
|
|
- cd ..
|
2016-12-29 23:10:38 -08:00
|
|
|
|
2017-08-21 23:48:20 -07:00
|
|
|
# Build Linux wheels.
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2018-12-11 17:21:53 -08:00
|
|
|
env: LINUX_WHEELS=1 PYTHONWARNINGS=ignore
|
2017-08-21 23:48:20 -07:00
|
|
|
install:
|
|
|
|
- ./.travis/install-dependencies.sh
|
|
|
|
# This command should be kept in sync with ray/python/README-building-wheels.md.
|
2018-02-16 07:18:42 -08:00
|
|
|
- docker run --rm -w /ray -v `pwd`:/ray -ti quay.io/xhochy/arrow_manylinux1_x86_64_base:latest /ray/python/build-wheel-manylinux1.sh
|
2017-08-21 23:48:20 -07:00
|
|
|
script:
|
|
|
|
- ./.travis/test-wheels.sh
|
|
|
|
|
|
|
|
# Build MacOS wheels.
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2018-12-11 17:21:53 -08:00
|
|
|
env: MAC_WHEELS=1 PYTHONWARNINGS=ignore
|
2017-08-21 23:48:20 -07:00
|
|
|
install:
|
|
|
|
- ./.travis/install-dependencies.sh
|
|
|
|
# This command should be kept in sync with ray/python/README-building-wheels.md.
|
|
|
|
- ./python/build-wheel-macos.sh
|
|
|
|
script:
|
|
|
|
- ./.travis/test-wheels.sh
|
|
|
|
|
2018-01-31 11:01:12 -08:00
|
|
|
# Test GCS integration
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
env:
|
|
|
|
- PYTHON=3.5
|
|
|
|
- RAY_USE_NEW_GCS=on
|
2018-12-11 17:21:53 -08:00
|
|
|
- PYTHONWARNINGS=ignore
|
2018-01-31 11:01:12 -08:00
|
|
|
|
2018-05-13 21:22:01 -07:00
|
|
|
|
2016-06-05 20:46:54 -07:00
|
|
|
install:
|
2016-12-13 17:37:22 -08:00
|
|
|
- ./.travis/install-dependencies.sh
|
2017-07-13 09:23:04 -07:00
|
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
2016-12-13 17:37:22 -08:00
|
|
|
- ./.travis/install-ray.sh
|
2017-11-09 20:49:06 -05:00
|
|
|
- ./.travis/install-cython-examples.sh
|
2016-06-05 20:46:54 -07:00
|
|
|
|
2018-06-02 07:28:27 +08:00
|
|
|
- cd build
|
|
|
|
- bash ../src/ray/test/run_gcs_tests.sh
|
2018-03-31 18:02:58 -07:00
|
|
|
# Raylet tests.
|
2018-06-02 07:28:27 +08:00
|
|
|
- bash ../src/ray/test/run_object_manager_tests.sh
|
2018-03-31 18:02:58 -07:00
|
|
|
- ./src/ray/raylet/task_test
|
|
|
|
- ./src/ray/raylet/worker_pool_test
|
|
|
|
- ./src/ray/raylet/lineage_cache_test
|
2018-05-17 17:18:30 -07:00
|
|
|
- ./src/ray/raylet/task_dependency_manager_test
|
2018-07-30 17:42:28 -04:00
|
|
|
- ./src/ray/raylet/reconstruction_policy_test
|
2018-10-18 21:56:22 -07:00
|
|
|
- ./src/ray/raylet/client_connection_test
|
2018-08-24 00:43:38 +08:00
|
|
|
- ./src/ray/util/logging_test --gtest_filter=PrintLogTest*
|
2018-09-02 12:58:23 +08:00
|
|
|
- ./src/ray/util/signal_test
|
2018-03-31 18:02:58 -07:00
|
|
|
|
2018-06-02 07:28:27 +08:00
|
|
|
- cd ..
|
2017-01-17 16:56:40 -08:00
|
|
|
|
2016-06-05 20:46:54 -07:00
|
|
|
script:
|
2017-07-13 09:23:04 -07:00
|
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
2018-07-30 11:04:06 -07:00
|
|
|
# The following is needed so cloudpickle can find some of the
|
|
|
|
# class definitions: The main module of tests that are run
|
|
|
|
# with pytest have the same name as the test file -- and this
|
|
|
|
# module is only found if the test directory is in the PYTHONPATH.
|
|
|
|
- export PYTHONPATH="$PYTHONPATH:./test/"
|
|
|
|
|
2018-12-03 23:15:43 -08:00
|
|
|
# ray tune tests
|
|
|
|
- python python/ray/tune/test/dependency_test.py
|
2018-12-11 14:25:04 -05:00
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/trial_runner_test.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/trial_scheduler_test.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/experiment_test.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/tune_server_test.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/ray_trial_executor_test.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/tune/test/automl_searcher_test.py
|
2018-12-03 23:15:43 -08:00
|
|
|
|
|
|
|
# ray rllib tests
|
2018-12-11 14:25:04 -05:00
|
|
|
- python -m pytest -v --durations=10 python/ray/rllib/test/test_catalog.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/rllib/test/test_filters.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/rllib/test/test_optimizers.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/rllib/test/test_evaluators.py
|
2018-12-03 23:15:43 -08:00
|
|
|
|
2018-12-06 17:39:05 -08:00
|
|
|
# Python3.5+ only. Otherwise we will get `SyntaxError` regardless of how we set the tester.
|
2018-12-11 14:25:04 -05:00
|
|
|
- python -c 'import sys;exit(sys.version_info>=(3,5))' || python -m pytest -v --durations=10 python/ray/experimental/test/async_test.py
|
|
|
|
|
|
|
|
- python -m pytest -v --durations=10 python/ray/test/test_global_state.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/test/test_queue.py
|
|
|
|
- python -m pytest -v --durations=10 python/ray/test/test_ray_init.py
|
2019-01-12 14:05:28 -08:00
|
|
|
- python -m pytest -v --durations=10 test/mini_test.py
|
2018-12-11 14:25:04 -05:00
|
|
|
|
|
|
|
- python -m pytest -v --durations=10 test/runtest.py
|
|
|
|
- python -m pytest -v --durations=10 test/array_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/actor_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/autoscaler_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/tensorflow_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/failure_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/microbenchmarks.py
|
|
|
|
- python -m pytest -v --durations=10 test/stress_tests.py
|
|
|
|
- python -m pytest -v --durations=10 test/component_failures_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/multi_node_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/multi_node_test_2.py
|
|
|
|
- python -m pytest -v --durations=10 test/recursion_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/monitor_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/cython_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/credis_test.py
|
|
|
|
- python -m pytest -v --durations=10 test/node_manager_test.py
|
2018-12-26 15:31:44 +08:00
|
|
|
# TODO(yuhguo): object_manager_test.py requires a lot of CPU/memory, and
|
|
|
|
# better be put in Jenkins. However, it fails frequently in Jenkins, but
|
|
|
|
# works well in Travis. We should consider moving it back to Jenkins once
|
|
|
|
# we figure out the reason.
|
|
|
|
- python -m pytest -v --durations=10 test/object_manager_test.py
|
2018-02-02 23:03:12 -08:00
|
|
|
|
2018-10-03 10:03:53 -07:00
|
|
|
# ray temp file tests
|
2018-12-11 14:25:04 -05:00
|
|
|
- python -m pytest -v --durations=10 test/tempfile_test.py
|
2018-10-03 10:03:53 -07:00
|
|
|
|
2018-11-29 11:05:24 -08:00
|
|
|
# modin test files
|
|
|
|
- python python/ray/test/test_modin.py
|
|
|
|
|
2017-10-09 23:10:58 -07:00
|
|
|
deploy:
|
2018-02-26 10:26:38 -08:00
|
|
|
- provider: s3
|
|
|
|
access_key_id: AKIAJ2L7XDUSZVTXI5QA
|
|
|
|
secret_access_key:
|
2018-05-31 00:05:03 -07:00
|
|
|
secure: OS9V8c/fQ9SIOP+Lg2MIz+PtCSKNQVB3mubscDRHKJcCmOp3cB6AKsC/yepbNZvvjDD/ncW2v6KJVsUEneAeDKrZQWSIpNb34yGAvWb7g4xleLxiadNtx6XEzjWaOcg+Y6409e68XeoHq/5ItopWNQ9p9NHXgsoHbZaOurPyHNskNgwBVaObCy+cCak7ifkITDk6cil0OJYnTbOe3NhcU82Fh5BZzS2+G2qNq8tGNcbfINhq0rruWIBuV5WRB/14CmBR+mou74qFSiiodH/MKbOcplx9+BxoOsTnkl7SeyybcK6DX6jxJCuhSBIjct9uT8Qdovv6mzOMkXvLkLKFkHfkTJSGBRIIZEvkPvzhlEriqTcr4tX/MV8HKs/Acz1NnlD0tNEygOr3VaiSLB0dvpz4iCeI9berqSu/jV1VI1X5iVNfChYbOMQ+OYafJMs5WdO60AMWIHy60U511FjAlbS7IubXBjfhoCItIB1xlVNI7FfKaRbNRwP5qvPenB8FUgZpv3UBg5OZDkeBXSNoLydr0w505p6s8Jqnz750TpVYI11fih5D0N3Ea57OwQr9r/rk+Z8aGeTpWj6hIgQiNkrIf2VZnWTApd+utJPw3X3txUEcnOtcdDnMsPuEIeMvIDrrFMRwzClqMNXq9MewU43wp7cCl67YmDBDKubl7Vs=
|
2018-02-26 10:26:38 -08:00
|
|
|
bucket: ray-wheels
|
|
|
|
acl: public_read
|
|
|
|
region: us-west-2
|
|
|
|
local_dir: .whl
|
|
|
|
upload-dir: $TRAVIS_COMMIT
|
|
|
|
skip_cleanup: true
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
on:
|
|
|
|
repo: ray-project/ray
|
|
|
|
condition: $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
|
|
|
|
- provider: s3
|
|
|
|
access_key_id: AKIAJ2L7XDUSZVTXI5QA
|
|
|
|
secret_access_key:
|
2018-05-31 00:05:03 -07:00
|
|
|
secure: OS9V8c/fQ9SIOP+Lg2MIz+PtCSKNQVB3mubscDRHKJcCmOp3cB6AKsC/yepbNZvvjDD/ncW2v6KJVsUEneAeDKrZQWSIpNb34yGAvWb7g4xleLxiadNtx6XEzjWaOcg+Y6409e68XeoHq/5ItopWNQ9p9NHXgsoHbZaOurPyHNskNgwBVaObCy+cCak7ifkITDk6cil0OJYnTbOe3NhcU82Fh5BZzS2+G2qNq8tGNcbfINhq0rruWIBuV5WRB/14CmBR+mou74qFSiiodH/MKbOcplx9+BxoOsTnkl7SeyybcK6DX6jxJCuhSBIjct9uT8Qdovv6mzOMkXvLkLKFkHfkTJSGBRIIZEvkPvzhlEriqTcr4tX/MV8HKs/Acz1NnlD0tNEygOr3VaiSLB0dvpz4iCeI9berqSu/jV1VI1X5iVNfChYbOMQ+OYafJMs5WdO60AMWIHy60U511FjAlbS7IubXBjfhoCItIB1xlVNI7FfKaRbNRwP5qvPenB8FUgZpv3UBg5OZDkeBXSNoLydr0w505p6s8Jqnz750TpVYI11fih5D0N3Ea57OwQr9r/rk+Z8aGeTpWj6hIgQiNkrIf2VZnWTApd+utJPw3X3txUEcnOtcdDnMsPuEIeMvIDrrFMRwzClqMNXq9MewU43wp7cCl67YmDBDKubl7Vs=
|
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
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
on:
|
|
|
|
repo: ray-project/ray
|
|
|
|
condition: $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
|