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
|
2016-12-13 17:37:22 -08:00
|
|
|
env: PYTHON=2.7
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2016-12-13 17:37:22 -08:00
|
|
|
env: PYTHON=3.5
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-06-22 11:28:01 -07:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2016-12-13 17:37:22 -08:00
|
|
|
env: PYTHON=2.7
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2016-12-13 17:37:22 -08:00
|
|
|
env: PYTHON=3.5
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
env: LINT=1
|
|
|
|
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
|
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 ..
|
|
|
|
# Run Python linting.
|
2018-01-25 11:36:37 -08:00
|
|
|
- flake8 --exclude=python/ray/core/src/common/flatbuffers_ep-prefix/,python/ray/core/generated/,src/common/format/,doc/source/conf.py,python/ray/cloudpickle/
|
2017-08-21 23:48:20 -07:00
|
|
|
|
2016-10-25 22:39:21 -07:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2016-12-13 17:37:22 -08:00
|
|
|
env: VALGRIND=1 PYTHON=2.7
|
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
|
2016-12-20 14:46:25 -08:00
|
|
|
|
2017-09-30 00:11:09 -07:00
|
|
|
script:
|
2017-03-01 23:34:44 -08:00
|
|
|
- cd python/ray/core
|
|
|
|
- bash ../../../src/common/test/run_valgrind.sh
|
|
|
|
- bash ../../../src/plasma/test/run_valgrind.sh
|
|
|
|
- bash ../../../src/local_scheduler/test/run_valgrind.sh
|
|
|
|
- cd ../../..
|
2016-12-29 23:10:38 -08:00
|
|
|
|
2017-03-01 23:34:44 -08:00
|
|
|
- python ./python/ray/plasma/test/test.py valgrind
|
|
|
|
- python ./python/ray/local_scheduler/test/test.py valgrind
|
|
|
|
- python ./python/ray/global_scheduler/test/test.py valgrind
|
2016-06-05 20:46:54 -07:00
|
|
|
|
2017-08-21 23:48:20 -07:00
|
|
|
# Build Linux wheels.
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
env: LINUX_WHEELS=1
|
|
|
|
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
|
|
|
|
env: MAC_WHEELS=1
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2017-03-01 23:34:44 -08:00
|
|
|
- cd python/ray/core
|
2017-12-14 14:54:09 -08:00
|
|
|
- bash ../../../src/ray/test/run_gcs_tests.sh
|
2018-03-31 18:02:58 -07:00
|
|
|
# Raylet tests.
|
|
|
|
- bash ../../../src/ray/test/run_object_manager_tests.sh
|
|
|
|
- bash ../../../src/ray/test/run_task_test.sh
|
|
|
|
- ./src/ray/raylet/task_test
|
|
|
|
- ./src/ray/raylet/worker_pool_test
|
|
|
|
- ./src/ray/raylet/lineage_cache_test
|
|
|
|
|
2017-03-01 23:34:44 -08:00
|
|
|
- bash ../../../src/common/test/run_tests.sh
|
|
|
|
- bash ../../../src/plasma/test/run_tests.sh
|
|
|
|
- bash ../../../src/local_scheduler/test/run_tests.sh
|
|
|
|
- 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"
|
2016-12-13 17:37:22 -08:00
|
|
|
|
2017-03-01 23:34:44 -08:00
|
|
|
- python python/ray/common/test/test.py
|
|
|
|
- python python/ray/common/redis_module/runtest.py
|
|
|
|
- python python/ray/plasma/test/test.py
|
|
|
|
- python python/ray/local_scheduler/test/test.py
|
|
|
|
- python python/ray/global_scheduler/test/test.py
|
2016-11-02 00:39:35 -07:00
|
|
|
|
|
|
|
- python test/runtest.py
|
|
|
|
- python test/array_test.py
|
2017-02-15 00:10:05 -08:00
|
|
|
- python test/actor_test.py
|
2017-12-15 23:56:39 -08:00
|
|
|
- python test/autoscaler_test.py
|
2017-01-07 01:54:11 -08:00
|
|
|
- python test/tensorflow_test.py
|
2016-11-02 00:39:35 -07:00
|
|
|
- python test/failure_test.py
|
|
|
|
- python test/microbenchmarks.py
|
2016-12-09 17:49:31 -08:00
|
|
|
- python test/stress_tests.py
|
2017-01-17 20:34:31 -08:00
|
|
|
- python test/component_failures_test.py
|
2017-01-25 22:53:48 -08:00
|
|
|
- python test/multi_node_test.py
|
2017-04-13 01:47:33 -07:00
|
|
|
- python test/recursion_test.py
|
2017-09-26 00:11:38 -07:00
|
|
|
- python test/monitor_test.py
|
2017-11-09 20:49:06 -05:00
|
|
|
- python test/cython_test.py
|
2018-03-07 10:18:58 -08:00
|
|
|
- python test/credis_test.py
|
2018-02-02 23:03:12 -08:00
|
|
|
|
|
|
|
# ray dataframe tests
|
2018-01-21 19:20:54 -08:00
|
|
|
- python -m pytest python/ray/dataframe/test/test_dataframe.py
|
|
|
|
- python -m pytest python/ray/dataframe/test/test_series.py
|
2017-09-16 15:53:19 -07:00
|
|
|
|
2018-02-02 23:03:12 -08:00
|
|
|
# ray tune tests
|
2018-03-29 15:36:49 -07:00
|
|
|
- python python/ray/tune/test/dependency_test.py
|
2018-02-02 23:03:12 -08:00
|
|
|
- python -m pytest python/ray/tune/test/trial_runner_test.py
|
|
|
|
- python -m pytest python/ray/tune/test/trial_scheduler_test.py
|
|
|
|
- python -m pytest python/ray/tune/test/tune_server_test.py
|
|
|
|
|
|
|
|
# ray rllib tests
|
2017-09-16 15:53:19 -07:00
|
|
|
- python -m pytest python/ray/rllib/test/test_catalog.py
|
2017-12-30 00:24:54 -08:00
|
|
|
- python -m pytest python/ray/rllib/test/test_filters.py
|
|
|
|
- python -m pytest python/ray/rllib/test/test_optimizers.py
|
2018-01-23 10:31:19 -08:00
|
|
|
- python -m pytest python/ray/rllib/test/test_evaluators.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:
|
|
|
|
secure: MZbzbQvfn9QI2H19Ai0EZju5BERhCMA8/piHU29syvtmoDqd/QdMW0DTHhLAqlaCrGeMGCx0y6sB9DjX46ZKndQ/cgSQDesfNC300NTZZlWyYr7K86yhj+hgIpYXs+G28g1hmQOUzCWL8kAgfeMle9GvKkZ7DkhdRszg8bPyIXdKtjQGO5RRrrjQBgIzjvOiWFOD9lDzula5j8uV4tsiXT8nQjuiOIwmAxB2r7zXHc/Vsr9wBAeQ9Fq6aomEGuuVscoMhZqWc0SHOOz0dIDdlJFF+W4Effw6l9u0Fe262g0WfsnS3PqF7a6eBC0qkf3yH8joAlvquVxWp+dr7dBzy0gGZysD/pqF/NBiB3GZ9TMreK39DJ9zC83p2r0awP1hduhkCJI2QOsNX7fna6e2edVt7rxOEe19So83eDNBbJ6bfV7YbkEMqUJxNHWC6MIDCrCbFf8QlT3fnPsb0IHMa9aJRe/TvgI+aR+nKjRhvVymXddCBAy5hYb/I66omx4BGbl7+9HPo/w/c3m+vCJIu6IQZFVAmsoP6pft9aYVXgkz20C4I/4tF0YlDuH617PT3DeCjf+MG4Mgh9JiXJ2Jt8U6NH1tlXiS/F6OjPGFB7UrFw1o2e0KhX+l/qJEslf5Xc35vmbELf1Fy7QNVttZ2H5OXYrWhsV8EOmpN+KcVQI=
|
|
|
|
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:
|
|
|
|
secure: MZbzbQvfn9QI2H19Ai0EZju5BERhCMA8/piHU29syvtmoDqd/QdMW0DTHhLAqlaCrGeMGCx0y6sB9DjX46ZKndQ/cgSQDesfNC300NTZZlWyYr7K86yhj+hgIpYXs+G28g1hmQOUzCWL8kAgfeMle9GvKkZ7DkhdRszg8bPyIXdKtjQGO5RRrrjQBgIzjvOiWFOD9lDzula5j8uV4tsiXT8nQjuiOIwmAxB2r7zXHc/Vsr9wBAeQ9Fq6aomEGuuVscoMhZqWc0SHOOz0dIDdlJFF+W4Effw6l9u0Fe262g0WfsnS3PqF7a6eBC0qkf3yH8joAlvquVxWp+dr7dBzy0gGZysD/pqF/NBiB3GZ9TMreK39DJ9zC83p2r0awP1hduhkCJI2QOsNX7fna6e2edVt7rxOEe19So83eDNBbJ6bfV7YbkEMqUJxNHWC6MIDCrCbFf8QlT3fnPsb0IHMa9aJRe/TvgI+aR+nKjRhvVymXddCBAy5hYb/I66omx4BGbl7+9HPo/w/c3m+vCJIu6IQZFVAmsoP6pft9aYVXgkz20C4I/4tF0YlDuH617PT3DeCjf+MG4Mgh9JiXJ2Jt8U6NH1tlXiS/F6OjPGFB7UrFw1o2e0KhX+l/qJEslf5Xc35vmbELf1Fy7QNVttZ2H5OXYrWhsV8EOmpN+KcVQI=
|
|
|
|
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
|