mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 05:25:28 +08:00
f83a98d71a
* Remove hiredis submodule. * Squashed 'src/common/thirdparty/hiredis/' content from commit acd1966 git-subtree-dir: src/common/thirdparty/hiredis git-subtree-split: acd1966bf7f5e1be74b426272635c672def78779 * Make Plasma tests pass. * Make Photon tests pass. * Compile and test with Travis. * Deactive fetch test so that the tests pass.
29 lines
506 B
Bash
Executable File
29 lines
506 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
# Determine how many parallel jobs to use for make based on the number of cores
|
|
unamestr="$(uname)"
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
PARALLEL=$(nproc)
|
|
elif [[ "$unamestr" == "Darwin" ]]; then
|
|
PARALLEL=$(sysctl -n hw.ncpu)
|
|
else
|
|
echo "Unrecognized platform."
|
|
exit 1
|
|
fi
|
|
|
|
pushd "$ROOT_DIR/src/common"
|
|
make
|
|
make test
|
|
popd
|
|
|
|
pushd "$ROOT_DIR/src/plasma"
|
|
make
|
|
make test
|
|
popd
|
|
|
|
pushd "$ROOT_DIR/src/photon"
|
|
make
|
|
popd
|