forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[win] migrate windows tests to civ2 (ray-project#41114)
Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Lonnie Liu <[email protected]>
- Loading branch information
Showing
8 changed files
with
148 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# We already checked out once at /c/workdir, but needs to checkout | ||
# for another time for the symlink thing. | ||
|
||
git config --global core.symlinks true | ||
git config --global core.autocrlf false | ||
git clone /c/workdir ray | ||
cd ray | ||
|
||
git checkout -f "${BUILDKITE_COMMIT}" | ||
|
||
export PYTHON="3.8" | ||
export RAY_USE_RANDOM_PORTS="1" | ||
export RAY_DEFAULT_BUILD="1" | ||
export LC_ALL="en_US.UTF-8" | ||
export LANG="en_US.UTF-8" | ||
export BUILD="1" | ||
export DL="1" | ||
|
||
powershell ci/pipeline/fix-windows-container-networking.ps1 | ||
powershell ci/pipeline/fix-windows-bazel.ps1 | ||
|
||
readonly PIPELINE_POSTMERGE="0189e759-8c96-4302-b6b5-b4274406bf89" | ||
|
||
cleanup() { | ||
if [[ "${BUILDKITE_PIPELINE_ID:-}" == "${PIPELINE_POSTMERGE}" ]]; then | ||
bash ./ci/build/upload_build_info.sh | ||
fi | ||
} | ||
trap cleanup EXIT | ||
|
||
upload_wheels() { | ||
if [[ "${BUILDKITE_PIPELINE_ID:-}" != "${PIPELINE_POSTMERGE}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
pip install -q docker aws_requests_auth boto3 | ||
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 | ||
} | ||
|
||
if [[ "$1" == "wheels" ]]; then | ||
export WINDOWS_WHEELS=1 | ||
bash ci/ci.sh init | ||
bash ci/ci.sh build | ||
upload_wheels | ||
exit 0 | ||
fi | ||
|
||
# Run tests | ||
|
||
conda init | ||
bash ci/ci.sh init | ||
bash ci/ci.sh build | ||
export RAY_ENABLE_WINDOWS_OR_OSX_CLUSTER=1 | ||
|
||
bash ci/ci.sh "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters