2021-12-21 20:16:34 -08:00
prelude_commands : &prelude_commands |-
set -ex
mkdir ray
cd ray
git config --global core.symlinks true
git config --global core.autocrlf false
git init
git remote add origin https://github.com/ray-project/ray.git
if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then export BUILDKITE_GIT_REF=${BUILDKITE_COMMIT}; else export BUILDKITE_GIT_REF=refs/pull/${BUILDKITE_PULL_REQUEST}/head; fi
git fetch -v --prune -- origin ${BUILDKITE_GIT_REF}
git checkout -f ${BUILDKITE_COMMIT}
export PYTHON="3.6"
export RAY_USE_RANDOM_PORTS="1"
export RAY_DEFAULT_BUILD="1"
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
2022-04-13 18:11:30 +01:00
powershell ci/pipeline/fix-windows-container-networking.ps1
cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
2021-12-21 20:16:34 -08:00
upload_wheels_if_needed : &upload_wheels_if_needed |-
if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
pip install -q docker aws_requests_auth boto3
2022-01-05 12:49:19 -08:00
python .buildkite/copy_files.py --destination branch_wheels --path python/dist
if [ "$BUILDKITE_BRANCH" = "master" ]; then python .buildkite/copy_files.py --destination wheels --path python/dist; fi
2021-12-21 20:16:34 -08:00
steps :
- label : ":windows: Build & Test"
parallelism : 6
commands :
- *prelude_commands
2022-03-29 10:56:42 +03:00
# conda init should be moved to the docker image setup
- conda init
2022-08-05 05:55:48 +09:00
- . ./ci/ci.sh init
2022-07-18 09:15:49 -07:00
- ./ci/ci.sh build
- if [ "${BUILDKITE_PARALLEL_JOB}" = "0" ]; then ./ci/ci.sh test_core; fi
2021-12-21 20:16:34 -08:00
# The next command will be sharded into $parallelism shards.
2022-07-18 09:15:49 -07:00
- ./ci/ci.sh test_python
2021-12-21 20:16:34 -08:00
2022-01-05 12:49:19 -08:00
- label : ":windows: Wheels"
commands :
- *prelude_commands
- export WINDOWS_WHEELS="1"
2022-08-05 05:55:48 +09:00
- . ./ci/ci.sh init
2022-07-18 09:15:49 -07:00
- ./ci/ci.sh build
2022-01-05 12:49:19 -08:00
- *upload_wheels_if_needed