pipeline.windows.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. prelude_commands: &prelude_commands |-
  2. set -ex
  3. mkdir ray
  4. cd ray
  5. git config --global core.symlinks true
  6. git config --global core.autocrlf false
  7. git init
  8. git remote add origin https://github.com/ray-project/ray.git
  9. if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then export BUILDKITE_GIT_REF=${BUILDKITE_COMMIT}; else export BUILDKITE_GIT_REF=refs/pull/${BUILDKITE_PULL_REQUEST}/head; fi
  10. git fetch -v --prune -- origin ${BUILDKITE_GIT_REF}
  11. git checkout -f ${BUILDKITE_COMMIT}
  12. export PYTHON="3.6"
  13. export RAY_USE_RANDOM_PORTS="1"
  14. export RAY_DEFAULT_BUILD="1"
  15. export LC_ALL="en_US.UTF-8"
  16. export LANG="en_US.UTF-8"
  17. powershell ci/pipeline/fix-windows-container-networking.ps1
  18. cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  19. upload_wheels_if_needed: &upload_wheels_if_needed |-
  20. if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
  21. pip install -q docker aws_requests_auth boto3
  22. python .buildkite/copy_files.py --destination branch_wheels --path python/dist
  23. if [ "$BUILDKITE_BRANCH" = "master" ]; then python .buildkite/copy_files.py --destination wheels --path python/dist; fi
  24. steps:
  25. - label: ":windows: Build & Test"
  26. parallelism: 6
  27. commands:
  28. - *prelude_commands
  29. # conda init should be moved to the docker image setup
  30. - conda init
  31. - . ./ci/ci.sh init
  32. - . ./ci/ci.sh build
  33. - if [ "${BUILDKITE_PARALLEL_JOB}" = "0" ]; then . ./ci/ci.sh test_core; fi
  34. # The next command will be sharded into $parallelism shards.
  35. - . ./ci/ci.sh test_python
  36. - label: ":windows: Wheels"
  37. commands:
  38. - *prelude_commands
  39. - export WINDOWS_WHEELS="1"
  40. - . ./ci/ci.sh init
  41. - . ./ci/ci.sh build
  42. - *upload_wheels_if_needed