mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 08:20:20 +08:00
[Streaming] Streaming data transfer java (#6474)
This commit is contained in:
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/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)
|
||||
|
||||
run_testng() {
|
||||
"$@" || exit_code=$?
|
||||
# exit_code == 2 means there are skipped tests.
|
||||
if [ $exit_code -ne 2 ] && [ $exit_code -ne 0 ] ; then
|
||||
exit $exit_code
|
||||
fi
|
||||
}
|
||||
|
||||
echo "build ray streaming"
|
||||
bazel build //streaming/java:all
|
||||
|
||||
echo "Linting Java code with checkstyle."
|
||||
bazel test //streaming/java:all --test_tag_filters="checkstyle" --build_tests_only
|
||||
|
||||
echo "Running streaming tests."
|
||||
run_testng java -cp $ROOT_DIR/../../bazel-bin/streaming/java/all_streaming_tests_deploy.jar\
|
||||
org.testng.TestNG -d /tmp/ray_streaming_java_test_output $ROOT_DIR/testng.xml
|
||||
|
||||
echo "Streaming TestNG results"
|
||||
cat /tmp/ray_streaming_java_test_output/testng-results.xml
|
||||
|
||||
echo "Testing maven install."
|
||||
cd $ROOT_DIR/../../java
|
||||
echo "build ray maven deps"
|
||||
bazel build gen_maven_deps
|
||||
echo "maven install ray"
|
||||
mvn clean install -DskipTests
|
||||
cd $ROOT_DIR
|
||||
echo "maven install ray streaming"
|
||||
mvn clean install -DskipTests
|
||||
Reference in New Issue
Block a user