mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00

* Support building Java and Python version at the same time. * Remove duplicated definition. * Refine the building process of local_scheduler * Refine * Add comment for languages * Modify instruction and add python,jave building to CI. * change according to comment
33 lines
883 B
Bash
Executable file
33 lines
883 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
set -e
|
|
|
|
# Show explicitly which commands are currently running.
|
|
set -x
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
$ROOT_DIR/../build.sh -l java,python
|
|
|
|
pushd $ROOT_DIR/../thirdparty/build/arrow/java
|
|
mvn clean install -pl plasma -am -Dmaven.test.skip
|
|
popd
|
|
pushd $ROOT_DIR/../java
|
|
mvn clean install -Dmaven.test.skip
|
|
check_style=$(mvn checkstyle:check)
|
|
echo "${check_style}"
|
|
[[ ${check_style} =~ "BUILD FAILURE" ]] && exit 1
|
|
|
|
# test non-raylet
|
|
sed -i 's/^use_raylet.*$/use_raylet = false/g' $ROOT_DIR/../java/ray.config.ini
|
|
mvn_test=$(mvn test)
|
|
echo "${mvn_test}"
|
|
[[ ${mvn_test} =~ "BUILD SUCCESS" ]] || exit 1
|
|
|
|
# test raylet
|
|
sed -i 's/^use_raylet.*$/use_raylet = true/g' $ROOT_DIR/../java/ray.config.ini
|
|
mvn_test=$(mvn test)
|
|
echo "${mvn_test}"
|
|
[[ ${mvn_test} =~ "BUILD SUCCESS" ]] || exit 1
|
|
|
|
popd
|