mirror of
https://github.com/wassname/ray.git
synced 2026-07-25 13:30:52 +08:00
* Delete LINT section of install-ray.sh since it appears unused * Delete install.sh since it appears unused * Delete run_test.sh since it appears unused * Put environment variables on separate lines in .travis.yml * Move --jobs 50 out of install-ray.sh * Delete upgrade-syn.sh since it appears unused * Move CI bazel flags to .bazelrc via --config * Make installations quieter * Get rid of verbose Maven messages * Install Bazel system-wide for CI so that there's no need to update PATH * Recognize Windows as valid platform Co-authored-by: Mehrdad <noreply@github.com>
23 lines
703 B
Bash
Executable File
23 lines
703 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
case "$(uname -s)" in
|
|
Linux*)
|
|
strace -qq -k -e trace=exit /bin/true 1> /dev/null 2> /dev/null || {
|
|
echo "This Linux distribution doesn't appear to support strace -k." "Attempting to build & install a recent version..." 1>&2
|
|
git -c advice.detachedHead=false clone -q --depth=1 "https://github.com/strace/strace" -b v5.5 && (
|
|
cd strace &&
|
|
./bootstrap > /dev/null &&
|
|
CPPFLAGS="-w ${CPPFLAGS-}" ./configure --quiet --with-libunwind --enable-mpers=no &&
|
|
make -s -j"$(getconf _NPROCESSORS_ONLN || echo 1)" &&
|
|
sudo make -s install
|
|
)
|
|
}
|
|
;;
|
|
*)
|
|
# Unable to install on other platforms
|
|
false
|
|
;;
|
|
esac
|