2020-07-28 10:44:06 -07:00
|
|
|
#!/usr/bin/env bash
|
2021-05-04 23:10:04 +02:00
|
|
|
# shellcheck disable=SC2046
|
|
|
|
cob="$1"
|
2020-07-28 10:44:06 -07:00
|
|
|
|
2020-12-08 19:15:07 +01:00
|
|
|
git clone https://github.com/ray-project/ray.git ray
|
|
|
|
pushd ray || true
|
|
|
|
git checkout "$cob"
|
|
|
|
|
|
|
|
bash ./ci/travis/install-bazel.sh
|
|
|
|
BAZEL_PATH=$HOME/bin/bazel
|
2020-07-28 10:44:06 -07:00
|
|
|
|
2021-06-01 17:39:18 +02:00
|
|
|
# Run all test cases, but with a forced num_gpus=1 (--test_env=RLLIB_NUM_GPUS=1).
|
|
|
|
$BAZEL_PATH test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=examples_A,examples_B --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 --test_env=RLLIB_NUM_GPUS=1 rllib/...
|
|
|
|
$BAZEL_PATH test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=examples_C,examples_D --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 --test_env=RLLIB_NUM_GPUS=1 rllib/...
|
|
|
|
$BAZEL_PATH test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=examples_E,examples_F,examples_G,examples_H,examples_I,examples_J,examples_K,examples_L,examples_M,examples_N,examples_O,examples_P --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 --test_env=RLLIB_NUM_GPUS=1 rllib/...
|
|
|
|
$BAZEL_PATH test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=examples_Q,examples_R,examples_S,examples_T,examples_U,examples_V,examples_W,examples_X,examples_Y,examples_Z --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 --test_env=RLLIB_NUM_GPUS=1 rllib/...
|
|
|
|
|
2020-12-08 19:15:07 +01:00
|
|
|
popd || true
|