Add shellcheck support (#8574)

This commit is contained in:
mehrdadn
2020-07-30 16:39:28 -07:00
committed by GitHub
parent 73df3f7bd2
commit a7b97b6f8a
13 changed files with 414 additions and 78 deletions
+6 -2
View File
@@ -8,6 +8,10 @@ WORKSPACE_DIR="${ROOT_DIR}/.."
PY_VERSIONS=($(python -s -c "import runpy, sys; runpy.run_path(sys.argv.pop(), run_name='__api__')" python_versions "${ROOT_DIR}"/setup.py | tr -d "\r"))
PY_SCRIPT_SUBDIR=Scripts # 'bin' for UNIX, 'Scripts' for Windows
bazel_preclean() {
"${WORKSPACE_DIR}"/ci/travis/bazel.py preclean "mnemonic(\"Genrule\", deps(//:*))"
}
get_python_version() {
python -s -c "import sys; sys.stdout.write('%s.%s' % sys.version_info[:2])"
}
@@ -56,7 +60,7 @@ build_wheel_windows() {
local local_dir="python/dist"
for pyversion in "${pyversions[@]}"; do
if [ -z "${pyversion}" ]; then continue; fi
"${WORKSPACE_DIR}"/ci/travis/bazel-preclean.sh
bazel_preclean
git clean -q -f -f -x -d -e "${local_dir}" -e python/ray/dashboard/client
git checkout -q -f -- .
@@ -82,7 +86,7 @@ build_wheel_windows() {
)
done
"${WORKSPACE_DIR}"/ci/travis/bazel-preclean.sh
bazel_preclean
if [ 0 -eq "${ray_uninstall_status}" ]; then # If Ray was previously installed, restore it
install_ray
fi